projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9bcbb5
)
Emit information about target
author
Chris Lattner
<sabre@nondot.org>
Tue, 22 Apr 2003 19:07:19 +0000
(19:07 +0000)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/lib/VMCore/AsmWriter.cpp
b/lib/VMCore/AsmWriter.cpp
index c55a87515c5065cd9b54bc2389f0099ed6d77ad2..1662ae038b27febe8706f029fa6cdb74c4c5b33d 100644
(file)
--- 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());