summaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/DwarfDebug.h
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2014-04-30 21:34:11 +0000
committerAlexey Samsonov <samsonov@google.com>2014-04-30 21:34:11 +0000
commitd51ae643686e019b64da3f7a0a3e031e56844d68 (patch)
treeb8e02ff194c798f15592a1083342521e65708265 /lib/CodeGen/AsmPrinter/DwarfDebug.h
parentd96bbedc6acb02f90bbc0d74cb345abfc16f8e9a (diff)
downloadllvm-d51ae643686e019b64da3f7a0a3e031e56844d68.tar.gz
llvm-d51ae643686e019b64da3f7a0a3e031e56844d68.tar.bz2
llvm-d51ae643686e019b64da3f7a0a3e031e56844d68.tar.xz
Move logic for calculating DBG_VALUE history map into separate file/class.
Summary: No functionality change. Test Plan: llvm regression test suite. Reviewers: dblaikie Reviewed By: dblaikie Subscribers: echristo, llvm-commits Differential Revision: http://reviews.llvm.org/D3573 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207708 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.h')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.h b/lib/CodeGen/AsmPrinter/DwarfDebug.h
index 16a314bdb3..e0d7ef4d89 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.h
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.h
@@ -17,6 +17,7 @@
#include "DwarfFile.h"
#include "AsmPrinterHandler.h"
#include "DIE.h"
+#include "DbgValueHistoryCalculator.h"
#include "DebugLocEntry.h"
#include "DebugLocList.h"
#include "DwarfAccelTable.h"
@@ -222,11 +223,7 @@ class DwarfDebug : public AsmPrinterHandler {
// appearance.
SmallVector<const MDNode *, 8> UserVariables;
- // For each user variable, keep a list of DBG_VALUE instructions in order.
- // The list can also contain normal instructions that clobber the previous
- // DBG_VALUE.
- typedef DenseMap<const MDNode *, SmallVector<const MachineInstr *, 4> >
- DbgValueHistoryMap;
+ // History of DBG_VALUE and clobber instructions for each user variable.
DbgValueHistoryMap DbgValues;
// Previous instruction's location information. This is used to determine