summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-04-22 19:07:19 +0000
committerChris Lattner <sabre@nondot.org>2003-04-22 19:07:19 +0000
commitc840aa64e2fb306d2f72c41256583d47f3904c53 (patch)
tree1bb4d6b1513a6a30678347b75becb7097952831e /llvm/lib/VMCore
parent20126130406ce67eb2195fe2fdbc1c2e5661e573 (diff)
downloadbcm5719-llvm-c840aa64e2fb306d2f72c41256583d47f3904c53.tar.gz
bcm5719-llvm-c840aa64e2fb306d2f72c41256583d47f3904c53.zip
Emit information about target
llvm-svn: 5844
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