DebugInfo: Introduce DebugLocList to encapsulate a list of DebugLocEntries and an...
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 2 Apr 2014 01:43:18 +0000 (01:43 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 2 Apr 2014 01:43:18 +0000 (01:43 +0000)
commitb2d73d1556b47a79d01b188be3cf0b25631d3982
tree6441c18a43bd90365b57fa597f24b88a3b20a15d
parent91b97ccd87e94bafbf68de8023df51f2ab94ff1b
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).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205382 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DIE.cpp
lib/CodeGen/AsmPrinter/DIEHash.cpp
lib/CodeGen/AsmPrinter/DebugLocList.h [new file with mode: 0644]
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h