diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-10-31 21:57:02 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-10-31 21:57:02 +0000 |
commit | 49be5b357b10e33b66853259404e6197145de4fe (patch) | |
tree | e05f1b2c8a7b38e8be237f1f2586ec61d79b5a71 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 6693f9cf3d99bd81717209654650c95acc371aff (diff) | |
download | bcm5719-llvm-49be5b357b10e33b66853259404e6197145de4fe.tar.gz bcm5719-llvm-49be5b357b10e33b66853259404e6197145de4fe.zip |
Sink most of DwarfDebug::constructAbstractSubprogramScopeDIE into DwarfCompileUnit
llvm-svn: 221005
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index f9ef6d09ff5..0a035053119 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -337,15 +337,11 @@ void DwarfDebug::constructAbstractSubprogramScopeDIE(LexicalScope *Scope) { const MDNode *SP = Scope->getScopeNode(); - DIE *&AbsDef = AbstractSPDies[SP]; - if (AbsDef) - return; - ProcessedSPNodes.insert(SP); // Find the subprogram's DwarfCompileUnit in the SPMap in case the subprogram // was inlined from another compile unit. - AbsDef = &SPMap[SP]->constructAbstractSubprogramScopeDIE(Scope); + SPMap[SP]->constructAbstractSubprogramScopeDIE(Scope); } void DwarfDebug::addGnuPubAttributes(DwarfUnit &U, DIE &D) const { |