From e9135cb3fb927f130b4f27e34e9b35cc95d76b19 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 23 Apr 2010 01:18:53 +0000 Subject: Revert 102135, 102129, 102127, 102106, 102104, 102102, 102012, 102004, because 102004 causes codegen to emit invalid assembly on at least x86_64-unknown-gnu-linux. llvm-svn: 102155 --- llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h') diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h index 16d41370535..bfd6f48d2e3 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h @@ -188,22 +188,16 @@ class DwarfDebug { DenseMap > InlineInfo; SmallVector InlinedSPNodes; - /// LabelsBeforeInsn - Maps instruction with label emitted before + /// InsnBeforeLabelMap - Maps instruction with label emitted before /// instruction. - DenseMap LabelsBeforeInsn; + DenseMap InsnBeforeLabelMap; - /// LabelsAfterInsn - Maps instruction with label emitted after + /// InsnAfterLabelMap - Maps instruction with label emitted after /// instruction. - DenseMap LabelsAfterInsn; + DenseMap InsnAfterLabelMap; SmallVector DebugRangeSymbols; - /// weakDebugRangeSymbols - In cases where function bodies is not emitted - /// into .text section, use function begin marker as anchor for debug range - /// offsets. This map keeps track of such symbols and corresponding - /// function begin marker symbols. - DenseMap WeakDebugRangeSymbols; - /// Previous instruction's location information. This is used to determine /// label location to indicate scope boundries in dwarf debug info. DebugLoc PrevInstLoc; @@ -224,8 +218,7 @@ 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 @@ -375,8 +368,13 @@ private: /// createSubprogramDIE - Create new DIE using SP. DIE *createSubprogramDIE(const DISubprogram &SP, bool MakeDecl = false); - /// getOrCreateDbgScope - Create DbgScope for the scope. - DbgScope *getOrCreateDbgScope(MDNode *Scope, MDNode *InlinedAt); + /// 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); DbgScope *getOrCreateAbstractScope(MDNode *N); -- cgit v1.2.3