aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-04-02 01:43:18 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-04-02 01:43:18 +0000
commit0a456de5a2e37f663b32401f7b5351d8344ad37f (patch)
tree6815be069d89a9682d2c242b9ec79067d5682d6b /llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp
parent7d8f86ceaecbc50c57d34320c6c06da8ff75d29c (diff)
downloadllvm-0a456de5a2e37f663b32401f7b5351d8344ad37f.zip
llvm-0a456de5a2e37f663b32401f7b5351d8344ad37f.tar.gz
llvm-0a456de5a2e37f663b32401f7b5351d8344ad37f.tar.bz2
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/DIEHash.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp b/llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp
index 9756054..74beec1 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp
@@ -284,9 +284,10 @@ void DIEHash::hashBlockData(const SmallVectorImpl<DIEValue *> &Values) {
// Hash the contents of a loclistptr class.
void DIEHash::hashLocList(const DIELocList &LocList) {
HashingByteStreamer Streamer(*this);
+ DwarfDebug &DD = *AP->getDwarfDebug();
for (const auto &Entry :
- AP->getDwarfDebug()->getDebugLocEntries()[LocList.getValue()])
- AP->getDwarfDebug()->emitDebugLocEntry(Streamer, Entry);
+ DD.getDebugLocEntries()[LocList.getValue()].List)
+ DD.emitDebugLocEntry(Streamer, Entry);
}
// Hash an individual attribute \param Attr based on the type of attribute and