diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-04-02 01:43:18 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-04-02 01:43:18 +0000 |
commit | 0a456de5a2e37f663b32401f7b5351d8344ad37f (patch) | |
tree | 6815be069d89a9682d2c242b9ec79067d5682d6b /llvm/lib/CodeGen/AsmPrinter/DIE.cpp | |
parent | 7d8f86ceaecbc50c57d34320c6c06da8ff75d29c (diff) | |
download | bcm5719-llvm-0a456de5a2e37f663b32401f7b5351d8344ad37f.tar.gz bcm5719-llvm-0a456de5a2e37f663b32401f7b5351d8344ad37f.zip |
DebugInfo: Introduce DebugLocList to encapsulate a list of DebugLocEntries and an MC Label to refer to them
This removes the magic-number-esque code creating/retrieving the same
label for a debug_loc entry from two places and removes the last small
piece of reusable logic from emitDebugLoc so that there will be less
duplication when refactoring it into two functions (one for debug_loc,
the other for debug_loc.dwo).
llvm-svn: 205382
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DIE.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DIE.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp b/llvm/lib/CodeGen/AsmPrinter/DIE.cpp index cea9df14dfc..26e8f2da853 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DIE.cpp @@ -560,7 +560,7 @@ unsigned DIELocList::SizeOf(AsmPrinter *AP, dwarf::Form Form) const { /// void DIELocList::EmitValue(AsmPrinter *AP, dwarf::Form Form) const { DwarfDebug *DD = AP->getDwarfDebug(); - MCSymbol *Label = AP->GetTempSymbol("debug_loc", Index); + MCSymbol *Label = DD->getDebugLocEntries()[Index].Label; if (AP->MAI->doesDwarfUseRelocationsAcrossSections() && !DD->useSplitDwarf()) AP->EmitSectionOffset(Label, DD->getDebugLocSym()); |