diff options
author | Devang Patel <dpatel@apple.com> | 2010-03-29 17:20:31 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-03-29 17:20:31 +0000 |
commit | 553881bddcdeb66c0ae06bf9f62ca63b9f29b2e8 (patch) | |
tree | d789cfac5cc11cfa65ee08492abe054b03e9774b /lib/CodeGen/AsmPrinter/DwarfDebug.h | |
parent | f283e40b6a48368a1713bddbb8556797bfec130b (diff) |
Refactor code to push DILocation prcessing into DwarfDebug.cpp from AsmPrinter.cpp.
This is same as r99772 (which was reverted) with just one meaningful difference where two source lines exchanged their positions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99816 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.h')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.h b/lib/CodeGen/AsmPrinter/DwarfDebug.h index d173f322b6..4a29091128 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.h +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.h @@ -184,6 +184,10 @@ class DwarfDebug : public DwarfPrinter { /// function. DenseMap<CompileUnit *, unsigned> CompileUnitOffsets; + /// Previous instruction's location information. This is used to determine + /// label location to indicate scope boundries in dwarf debug info. + mutable const MDNode *PrevDILoc; + /// DebugTimer - Timer for the Dwarf debug writer. Timer *DebugTimer; @@ -542,8 +546,8 @@ public: /// collectVariableInfo - Populate DbgScope entries with variables' info. void collectVariableInfo(); - /// beginScope - Process beginning of a scope starting at Label. - void beginScope(const MachineInstr *MI, MCSymbol *Label); + /// beginScope - Process beginning of a scope. + void beginScope(const MachineInstr *MI); /// endScope - Prcess end of a scope. void endScope(const MachineInstr *MI); |