summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-04-27 19:46:33 +0000
committerDevang Patel <dpatel@apple.com>2010-04-27 19:46:33 +0000
commit6c74a872a8d34d41b751efb68e335cbe91b5a5cc (patch)
treec0144b74fb7cd0604b63c985f76ad05999b36bc3 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
parenteb828b6391c6e2d8ee04f79b4d187a49c647c164 (diff)
downloadbcm5719-llvm-6c74a872a8d34d41b751efb68e335cbe91b5a5cc.tar.gz
bcm5719-llvm-6c74a872a8d34d41b751efb68e335cbe91b5a5cc.zip
Identify when a lexical scope is split in to multiple instruction ranges. Emit such ranges using DW_AT_ranges.
This patch fixes bug (PR6894) introduced by previous version of this patch. llvm-svn: 102454
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h20
1 files changed, 8 insertions, 12 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
index bfd6f48d2e3..698f7106019 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
@@ -188,13 +188,13 @@ class DwarfDebug {
DenseMap<MDNode*, SmallVector<InlineInfoLabels, 4> > InlineInfo;
SmallVector<MDNode *, 4> InlinedSPNodes;
- /// InsnBeforeLabelMap - Maps instruction with label emitted before
+ /// LabelsBeforeInsn - Maps instruction with label emitted before
/// instruction.
- DenseMap<const MachineInstr *, MCSymbol *> InsnBeforeLabelMap;
+ DenseMap<const MachineInstr *, MCSymbol *> LabelsBeforeInsn;
- /// InsnAfterLabelMap - Maps instruction with label emitted after
+ /// LabelsAfterInsn - Maps instruction with label emitted after
/// instruction.
- DenseMap<const MachineInstr *, MCSymbol *> InsnAfterLabelMap;
+ DenseMap<const MachineInstr *, MCSymbol *> LabelsAfterInsn;
SmallVector<const MCSymbol *, 8> DebugRangeSymbols;
@@ -218,7 +218,8 @@ class DwarfDebug {
// section offsets and are created by EmitSectionLabels.
MCSymbol *DwarfFrameSectionSym, *DwarfInfoSectionSym, *DwarfAbbrevSectionSym;
MCSymbol *DwarfStrSectionSym, *TextSectionSym, *DwarfDebugRangeSectionSym;
-
+
+ MCSymbol *FunctionBeginSym;
private:
/// getSourceDirectoryAndFileIds - Return the directory and file ids that
@@ -368,13 +369,8 @@ private:
/// createSubprogramDIE - Create new DIE using SP.
DIE *createSubprogramDIE(const DISubprogram &SP, bool MakeDecl = false);
- /// getUpdatedDbgScope - Find or create DbgScope assicated with
- /// the instruction. Initialize scope and update scope hierarchy.
- DbgScope *getUpdatedDbgScope(MDNode *N, const MachineInstr *MI,
- MDNode *InlinedAt);
-
- /// createDbgScope - Create DbgScope for the scope.
- void createDbgScope(MDNode *Scope, MDNode *InlinedAt);
+ /// getOrCreateDbgScope - Create DbgScope for the scope.
+ DbgScope *getOrCreateDbgScope(MDNode *Scope, MDNode *InlinedAt);
DbgScope *getOrCreateAbstractScope(MDNode *N);
OpenPOWER on IntegriCloud