diff options
| author | Devang Patel <dpatel@apple.com> | 2010-03-28 21:23:37 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2010-03-28 21:23:37 +0000 |
| commit | de9b1efbe5650f2eef8a552a81e94a6e682e05f0 (patch) | |
| tree | e008c189cd5e51d4d7a8ce5f2e9369591ed56752 /include/llvm/CodeGen | |
| parent | bed993d8a4ede75a24a142437057b42498ce5b9f (diff) | |
Revert 99772.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99778 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
| -rw-r--r-- | include/llvm/CodeGen/AsmPrinter.h | 4 | ||||
| -rw-r--r-- | include/llvm/CodeGen/DwarfWriter.h | 10 |
2 files changed, 13 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h index ffeb44da7b..2cd477e806 100644 --- a/include/llvm/CodeGen/AsmPrinter.h +++ b/include/llvm/CodeGen/AsmPrinter.h @@ -47,6 +47,7 @@ namespace llvm { class MCSection; class MCStreamer; class MCSymbol; + class MDNode; class DwarfWriter; class Mangler; class MCAsmInfo; @@ -137,6 +138,9 @@ namespace llvm { mutable unsigned Counter; mutable unsigned SetCounter; + // Private state for processDebugLoc() + mutable const MDNode *PrevDLT; + protected: explicit AsmPrinter(formatted_raw_ostream &o, TargetMachine &TM, MCStreamer &Streamer); diff --git a/include/llvm/CodeGen/DwarfWriter.h b/include/llvm/CodeGen/DwarfWriter.h index 494400ee2c..3c7f8024d9 100644 --- a/include/llvm/CodeGen/DwarfWriter.h +++ b/include/llvm/CodeGen/DwarfWriter.h @@ -83,11 +83,19 @@ public: /// void EndFunction(const MachineFunction *MF); + /// RecordSourceLine - Register a source line with debug info. Returns the + /// unique label that was emitted and which provides correspondence to + /// the source line list. + MCSymbol *RecordSourceLine(unsigned Line, unsigned Col, MDNode *Scope); + + /// getRecordSourceLineCount - Count source lines. + unsigned getRecordSourceLineCount(); + /// ShouldEmitDwarfDebug - Returns true if Dwarf debugging declarations should /// be emitted. bool ShouldEmitDwarfDebug() const; - void BeginScope(const MachineInstr *MI); + void BeginScope(const MachineInstr *MI, MCSymbol *Label); void EndScope(const MachineInstr *MI); }; |
