diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-05-22 00:48:36 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-05-22 00:48:36 +0000 |
commit | b1a3b17e7896f8f5a3fa840b0caa0edfa7eae877 (patch) | |
tree | 729a49c2636d04da921e689285c1dece02141448 /lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | facca6e3f3a3b2988cb872834937cb204eb2a686 (diff) | |
download | llvm-b1a3b17e7896f8f5a3fa840b0caa0edfa7eae877.tar.gz llvm-b1a3b17e7896f8f5a3fa840b0caa0edfa7eae877.tar.bz2 llvm-b1a3b17e7896f8f5a3fa840b0caa0edfa7eae877.tar.xz |
DebugInfo: Simplify dead variable collection slightly.
constructSubprogramDIE was already called for every subprogram in every
CU when the module was started - there's no need to call it again at
module finalization.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209372 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 4a317cf0b5..049e9e28c1 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -827,10 +827,8 @@ void DwarfDebug::collectDeadVariables() { if (Variables.getNumElements() == 0) continue; - // FIXME: See the comment in constructSubprogramDIE about duplicate - // subprogram DIEs. - constructSubprogramDIE(*SPCU, SP); DIE *SPDIE = SPCU->getDIE(SP); + assert(SPDIE); for (unsigned vi = 0, ve = Variables.getNumElements(); vi != ve; ++vi) { DIVariable DV(Variables.getElement(vi)); assert(DV.isVariable()); |