DebugInfo: Use existing symbol rather than creating it again.
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 11 Feb 2014 01:23:52 +0000 (01:23 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 11 Feb 2014 01:23:52 +0000 (01:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201119 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.cpp

index 8637c4d6519f9d06351e69400ead76fa1c76a3c7..c0d128be3dcd1653a86eda7b4f2eaea5dc9127e9 100644 (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);