summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-05-22 00:48:36 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-05-22 00:48:36 +0000
commit8729bca33364d7a8e384024d092582066621f490 (patch)
tree41d39d2a8a1364c547288d77d6712a3541adf9f8 /llvm/lib/CodeGen
parente255359b57d6fe66c45ff1bda2c89a3efa02d5ba (diff)
downloadbcm5719-llvm-8729bca33364d7a8e384024d092582066621f490.tar.gz
bcm5719-llvm-8729bca33364d7a8e384024d092582066621f490.zip
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. llvm-svn: 209372
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 4a317cf0b56..049e9e28c11 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/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());
OpenPOWER on IntegriCloud