diff options
author | Alexey Samsonov <samsonov@google.com> | 2014-04-30 23:02:40 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2014-04-30 23:02:40 +0000 |
commit | 5c91f4db1f5229b8e933c49d91e93c2bc7a6e4d9 (patch) | |
tree | e06678775bd5598b76242a2c6fd11c7fd220832e /lib/CodeGen/AsmPrinter/DwarfDebug.h | |
parent | 4e9d8388dd2ec26a0b9c68d513fdf314cd9fd43c (diff) | |
download | llvm-5c91f4db1f5229b8e933c49d91e93c2bc7a6e4d9.tar.gz llvm-5c91f4db1f5229b8e933c49d91e93c2bc7a6e4d9.tar.bz2 llvm-5c91f4db1f5229b8e933c49d91e93c2bc7a6e4d9.tar.xz |
Use a single data structure to store all user variables in DwarfDebug
Summary:
Get rid of UserVariables set, and turn DbgValues into MapVector
to get a fixed ordering, as suggested in review for http://reviews.llvm.org/D3573.
Test Plan: llvm regression tests
Reviewers: dblaikie
Reviewed By: dblaikie
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D3579
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207720 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.h')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.h b/lib/CodeGen/AsmPrinter/DwarfDebug.h index f0472e93f5..5779a513c1 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.h +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.h @@ -219,11 +219,8 @@ class DwarfDebug : public AsmPrinterHandler { // Maps instruction with label emitted after instruction. DenseMap<const MachineInstr *, MCSymbol *> LabelsAfterInsn; - // Every user variable mentioned by a DBG_VALUE instruction in order of - // appearance. - SmallVector<const MDNode *, 8> UserVariables; - // History of DBG_VALUE and clobber instructions for each user variable. + // Variables are listed in order of appearance. DbgValueHistoryMap DbgValues; // Previous instruction's location information. This is used to determine |