aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/VMCore/AsmWriter.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp
index 225bd18d85..1cdfae38ee 100644
--- a/lib/VMCore/AsmWriter.cpp
+++ b/lib/VMCore/AsmWriter.cpp
@@ -732,6 +732,17 @@ void AssemblyWriter::printModule(const Module *M) {
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());