summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/VMCore')
-rw-r--r--llvm/lib/VMCore/AsmWriter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp
index c55a87515c5..1662ae038b2 100644
--- a/llvm/lib/VMCore/AsmWriter.cpp
+++ b/llvm/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());
OpenPOWER on IntegriCloud