diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-07-25 18:08:18 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-07-25 18:08:18 +0000 |
commit | 83f6a77c8fc27eba21bca05be37663f3a6e123a1 (patch) | |
tree | 8806d43dfc0b595391158983f322ef5a88e479a1 /lib | |
parent | ad89bd6a1a74d3d3223d9eb23e16f10c02f836fa (diff) |
bug 263:
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 11 |
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()); |