diff options
| author | Adrian Prantl <aprantl@apple.com> | 2016-05-10 19:38:51 +0000 |
|---|---|---|
| committer | Adrian Prantl <aprantl@apple.com> | 2016-05-10 19:38:51 +0000 |
| commit | 723ccd27906301bcb8cd84543c769499191e9cd2 (patch) | |
| tree | 8b89aa0377a10dad1339b4db2153c0aae43f686d /llvm/lib/CodeGen/AsmPrinter | |
| parent | f72914f42a31320dac8effd8fb50df9f2ee00be8 (diff) | |
| download | bcm5719-llvm-723ccd27906301bcb8cd84543c769499191e9cd2.tar.gz bcm5719-llvm-723ccd27906301bcb8cd84543c769499191e9cd2.zip | |
Debug Info: Prevent DW_AT_abstract_origin from being emitted twice
for the same subprogram.
This fixes a bug where DW_AT_abstract_origin is being emitted twice for
the same subprogram if a function is both inlined and emitted in the same
translation unit, by restoring the pre-r266446 behavior.
http://reviews.llvm.org/D20072
llvm-svn: 269103
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index dcd49acb250..1c3e96d60e4 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -529,13 +529,6 @@ void DwarfDebug::finishSubprogramDefinitions() { forBothCUs(*CUMap.lookup(SP->getUnit()), [&](DwarfCompileUnit &CU) { CU.finishSubprogramDefinition(SP); }); - for (auto *AbsScope : LScopes.getAbstractScopesList()) - if (auto *SP = dyn_cast<DISubprogram>(AbsScope->getScopeNode())) - if (ProcessedSPNodes.count(SP) && - SP->getUnit()->getEmissionKind() != DICompileUnit::NoDebug) - forBothCUs(*CUMap.lookup(SP->getUnit()), [&](DwarfCompileUnit &CU) { - CU.finishSubprogramDefinition(SP); - }); } void DwarfDebug::finalizeModuleInfo() { |

