mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
Fix bug 3140.
Print a single parameter .file directive if we have an ELF target. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60480 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -142,6 +142,14 @@ bool AsmPrinter::doInitialization(Module &M) {
|
||||
|
||||
GCModuleInfo *MI = getAnalysisToUpdate<GCModuleInfo>();
|
||||
assert(MI && "AsmPrinter didn't require GCModuleInfo?");
|
||||
|
||||
if (TAI->hasSingleParameterDotFile()) {
|
||||
/* Very minimal debug info. It is ignored if we emit actual
|
||||
debug info. If we don't, this at helps the user find where
|
||||
a function came from. */
|
||||
O << "\t.file\t\"" << M.getModuleIdentifier() << "\"\n";
|
||||
}
|
||||
|
||||
for (GCModuleInfo::iterator I = MI->begin(), E = MI->end(); I != E; ++I)
|
||||
if (GCMetadataPrinter *MP = GetOrCreateGCPrinter(*I))
|
||||
MP->beginAssembly(O, *this, *TAI);
|
||||
|
||||
Reference in New Issue
Block a user