[llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp
LLVM
llvm at cs.uiuc.edu
Sun Jul 25 11:08:28 PDT 2004
Changes in directory llvm/lib/VMCore:
AsmWriter.cpp updated: 1.149 -> 1.150
---
Log message:
bug 263: http://llvm.cs.uiuc.edu/PR263 :
Add ability to write target triple and dependent libraries information.
---
Diffs of the changes: (+11 -0)
Index: llvm/lib/VMCore/AsmWriter.cpp
diff -u llvm/lib/VMCore/AsmWriter.cpp:1.149 llvm/lib/VMCore/AsmWriter.cpp:1.150
--- llvm/lib/VMCore/AsmWriter.cpp:1.149 Sat Jul 17 20:04:19 2004
+++ llvm/lib/VMCore/AsmWriter.cpp Sun Jul 25 13:08:18 2004
@@ -732,6 +732,17 @@
case Module::Pointer64: Out << "target pointersize = 64\n"; break;
case Module::AnyPointerSize: break;
}
+ Out << "target triple = \"" << M->getTargetTriple() << "\"\n";
+
+ // Loop over the dependent libraries and emit them
+ Out << "deplibs = [\n";
+ for (Module::const_literator LI = M->lbegin(), LE = M->lend(); LI != LE; ) {
+ Out << "\"" << *LI << "\"";
+ ++LI;
+ if ( LI != LE )
+ Out << ",\n";
+ }
+ Out << " ]\n";
// Loop over the symbol table, emitting all named constants...
printSymbolTable(M->getSymbolTable());
More information about the llvm-commits
mailing list