[llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Apr 22 14:08:03 PDT 2003


Changes in directory llvm/lib/VMCore:

AsmWriter.cpp updated: 1.83 -> 1.84

---
Log message:

Emit information about target


---
Diffs of the changes:

Index: llvm/lib/VMCore/AsmWriter.cpp
diff -u llvm/lib/VMCore/AsmWriter.cpp:1.83 llvm/lib/VMCore/AsmWriter.cpp:1.84
--- llvm/lib/VMCore/AsmWriter.cpp:1.83	Wed Apr 16 15:28:45 2003
+++ llvm/lib/VMCore/AsmWriter.cpp	Tue Apr 22 14:07:19 2003
@@ -519,6 +519,9 @@
 
 
 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());
   





More information about the llvm-commits mailing list