diff options
author | Devang Patel <dpatel@apple.com> | 2010-04-08 16:50:29 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-04-08 16:50:29 +0000 |
commit | 1c246358a062bc3537c1286c6b9314d56854a257 (patch) | |
tree | a28fbd6c8b6c3b4fae2b9c4b4f42a9015875117a /lib/CodeGen/AsmPrinter/DwarfDebug.h | |
parent | fcf0f082f485e45f591c0d1cbaa9a2ad8691e2c3 (diff) |
One instruction may start (or end) multiple lexical scopes.
There is no need to remember labels identifying regions marked by such instructions in each scope.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100781 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.h')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.h b/lib/CodeGen/AsmPrinter/DwarfDebug.h index 8a38ef10a7..ba3813758d 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.h +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.h @@ -179,14 +179,9 @@ class DwarfDebug { SmallPtrSet<DIE *, 4> AbstractSubprogramDIEs; typedef SmallVector<DbgScope *, 2> ScopeVector; - typedef DenseMap<const MachineInstr *, ScopeVector> - InsnToDbgScopeMapTy; - /// DbgScopeBeginMap - Maps instruction with a list of DbgScopes it starts. - InsnToDbgScopeMapTy DbgScopeBeginMap; - - /// DbgScopeEndMap - Maps instruction with a list DbgScopes it ends. - InsnToDbgScopeMapTy DbgScopeEndMap; + SmallPtrSet<const MachineInstr *, 8> InsnsBeginScopeSet; + SmallPtrSet<const MachineInstr *, 8> InsnsEndScopeSet; /// InlineInfo - Keep track of inlined functions and their location. This /// information is used to populate debug_inlined section. @@ -194,6 +189,14 @@ class DwarfDebug { DenseMap<MDNode*, SmallVector<InlineInfoLabels, 4> > InlineInfo; SmallVector<MDNode *, 4> InlinedSPNodes; + /// InsnBeforeLabelMap - Maps instruction with label emitted before + /// instruction. + DenseMap<const MachineInstr *, MCSymbol *> InsnBeforeLabelMap; + + /// InsnAfterLabelMap - Maps instruction with label emitted after + /// instruction. + DenseMap<const MachineInstr *, MCSymbol *> InsnAfterLabelMap; + /// CompileUnitOffsets - A vector of the offsets of the compile units. This is /// used when calculating the "origin" of a concrete instance of an inlined /// function. |