mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 02:33:53 +00:00
Print the module ID as a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20411 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4318a3d0e9
commit
31ab1b3d74
@ -765,6 +765,12 @@ void AssemblyWriter::writeOperand(const Value *Operand, bool PrintType,
|
|||||||
|
|
||||||
|
|
||||||
void AssemblyWriter::printModule(const Module *M) {
|
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()) {
|
switch (M->getEndianness()) {
|
||||||
case Module::LittleEndian: Out << "target endian = little\n"; break;
|
case Module::LittleEndian: Out << "target endian = little\n"; break;
|
||||||
case Module::BigEndian: Out << "target endian = big\n"; break;
|
case Module::BigEndian: Out << "target endian = big\n"; break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user