summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-03-24 22:38:38 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-03-24 22:38:38 +0000
commit84d8e18f2b1629006f259d50f9cd7548fe47f0b6 (patch)
tree05a29831ca53786404f756b85e3e5af46666fdce /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
parent34ec5d07e1a145eb0cfabe65f7db442c1a97eb43 (diff)
downloadbcm5719-llvm-84d8e18f2b1629006f259d50f9cd7548fe47f0b6.tar.gz
bcm5719-llvm-84d8e18f2b1629006f259d50f9cd7548fe47f0b6.zip
DebugInfo: Simplify debug loc list handling by keeping separate lists
Rather than using a flat list with "empty" entries (ala the actual on-disk format), keep separate lists for each variable. llvm-svn: 204680
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
index 2d073e380c0..064c0fa7624 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
@@ -366,7 +366,7 @@ class DwarfDebug : public AsmPrinterHandler {
DenseMap<const MDNode *, DbgVariable *> AbstractVariables;
// Collection of DebugLocEntry.
- SmallVector<DebugLocEntry, 4> DotDebugLocEntries;
+ SmallVector<SmallVector<DebugLocEntry, 4>, 4> DotDebugLocEntries;
// Collection of subprogram DIEs that are marked (at the end of the module)
// as DW_AT_inline.
@@ -763,7 +763,8 @@ public:
const DwarfCompileUnit *getPrevCU() const { return PrevCU; }
/// Returns the entries for the .debug_loc section.
- const SmallVectorImpl<DebugLocEntry> &getDebugLocEntries() const {
+ const SmallVectorImpl<SmallVector<DebugLocEntry, 4>> &
+ getDebugLocEntries() const {
return DotDebugLocEntries;
}
OpenPOWER on IntegriCloud