DebugInfo: Use existing symbol rather than creating it again.

llvm-svn: 201119
This commit is contained in:
David Blaikie 2014-02-11 01:23:52 +00:00
parent e54a0bfcd3
commit a47009dbd3
1 changed files with 1 additions and 1 deletions

View File

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