DebugInfo: Use existing symbol rather than creating it again.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201119 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Blaikie 2014-02-11 01:23:52 +00:00
parent 8ed971b988
commit efbd8e5fc0

View File

@ -778,7 +778,7 @@ DwarfCompileUnit *DwarfDebug::constructDwarfCompileUnit(DICompileUnit DIUnit) {
// is not okay to use line_table_start here. // is not okay to use line_table_start here.
if (Asm->MAI->doesDwarfUseRelocationsAcrossSections()) if (Asm->MAI->doesDwarfUseRelocationsAcrossSections())
NewCU->addSectionLabel(Die, dwarf::DW_AT_stmt_list, NewCU->addSectionLabel(Die, dwarf::DW_AT_stmt_list,
UseTheFirstCU ? Asm->GetTempSymbol("section_line") UseTheFirstCU ? DwarfLineSectionSym
: LineTableStartSym); : LineTableStartSym);
else if (UseTheFirstCU) else if (UseTheFirstCU)
NewCU->addSectionOffset(Die, dwarf::DW_AT_stmt_list, 0); NewCU->addSectionOffset(Die, dwarf::DW_AT_stmt_list, 0);