Add ability to write target triple and dependent libraries information.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15211
91177308-0d34-0410-b5e6-
96231b3b80d8
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());