diff options
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index c55a875..1662ae0 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -519,6 +519,9 @@ void AssemblyWriter::writeOperand(const Value *Operand, bool PrintType, void AssemblyWriter::printModule(const Module *M) { + Out << "target endian = " << (M->isLittleEndian() ? "little" : "big") << "\n"; + Out << "target pointersize = " << (M->has32BitPointers() ? 32 : 64) << "\n"; + // Loop over the symbol table, emitting all named constants... printSymbolTable(M->getSymbolTable()); |