Emit information about target
authorChris Lattner <sabre@nondot.org>
Tue, 22 Apr 2003 19:07:19 +0000 (19:07 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 22 Apr 2003 19:07:19 +0000 (19:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5844 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/AsmWriter.cpp

index c55a87515c5065cd9b54bc2389f0099ed6d77ad2..1662ae038b27febe8706f029fa6cdb74c4c5b33d 100644 (file)
@@ -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());