mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Print the module ID as a comment.
llvm-svn: 20411
This commit is contained in:
parent
b205d87afe
commit
f9597dc689
@ -765,6 +765,12 @@ void AssemblyWriter::writeOperand(const Value *Operand, bool PrintType,
|
||||
|
||||
|
||||
void AssemblyWriter::printModule(const Module *M) {
|
||||
if (!M->getModuleIdentifier().empty() &&
|
||||
// Don't print hte ID if it will start a new line (which would
|
||||
// require a comment char before it).
|
||||
M->getModuleIdentifier().find('\n') == std::string::npos)
|
||||
Out << "; ModuleID = '" << M->getModuleIdentifier() << "'\n";
|
||||
|
||||
switch (M->getEndianness()) {
|
||||
case Module::LittleEndian: Out << "target endian = little\n"; break;
|
||||
case Module::BigEndian: Out << "target endian = big\n"; break;
|
||||
|
Loading…
Reference in New Issue
Block a user