mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-15 09:33:39 +00:00
Adjust to new Module.h interface for dependent libraries
Only write the target triple and deplibs if they are non-empty. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15216 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
641588bb3e
commit
c9a1f0dcdd
@ -732,17 +732,21 @@ 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";
|
||||
if (M->getTargetTriple().size() > 0)
|
||||
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";
|
||||
if (M->lib_size() > 0) {
|
||||
Out << "deplibs = [\n";
|
||||
for (Module::lib_iterator LI = M->lib_begin(), LE = M->lib_end();
|
||||
LI != LE; ) {
|
||||
Out << "\"" << *LI << "\"";
|
||||
++LI;
|
||||
if ( LI != LE )
|
||||
Out << ",\n";
|
||||
}
|
||||
Out << " ]\n";
|
||||
}
|
||||
Out << " ]\n";
|
||||
|
||||
// Loop over the symbol table, emitting all named constants...
|
||||
printSymbolTable(M->getSymbolTable());
|
||||
|
Loading…
x
Reference in New Issue
Block a user