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 | cc5ff64416dd52c74ac4182855dc7e29e06b144a (patch) | |
| tree | 68eb62780598dc5f75fe08375460f1b7830e2b90 /llvm/lib/VMCore/AsmWriter.cpp | |
| parent | b2bdb943b5197b53cc4361b6f72f35614b236a8f (diff) | |
| download | bcm5719-llvm-cc5ff64416dd52c74ac4182855dc7e29e06b144a.tar.gz bcm5719-llvm-cc5ff64416dd52c74ac4182855dc7e29e06b144a.zip  | |
bug 263:
Add ability to write target triple and dependent libraries information.
llvm-svn: 15211
Diffstat (limited to 'llvm/lib/VMCore/AsmWriter.cpp')
| -rw-r--r-- | llvm/lib/VMCore/AsmWriter.cpp | 11 | 
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp index 225bd18d859..1cdfae38eef 100644 --- a/llvm/lib/VMCore/AsmWriter.cpp +++ b/llvm/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());  | 

