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 | 0436caa9361030b8a2b75f878f3d396273223aeb (patch) | |
tree | 2429477b8f3b3ee69eafcb968b753e9fe053c2b1 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h | |
parent | 899ae61feed7e1025eff022ad908d4152a9b5fe0 (diff) | |
download | bcm5719-llvm-0436caa9361030b8a2b75f878f3d396273223aeb.tar.gz bcm5719-llvm-0436caa9361030b8a2b75f878f3d396273223aeb.zip |
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
llvm-svn: 207720
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h index f0472e93f55..5779a513c1f 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h +++ b/llvm/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 |