mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-18 13:34:04 +00:00
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
This commit is contained in:
parent
facca6e3f3
commit
b1a3b17e78
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user