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 /lib/CodeGen/AsmPrinter/DwarfWriter.cpp | |
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 'lib/CodeGen/AsmPrinter/DwarfWriter.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfWriter.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp index a2d7ab1224..9fd4c44785 100644 --- a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp @@ -73,14 +73,27 @@ void DwarfWriter::EndFunction(const MachineFunction *MF) { MMI->EndFunction(); } +/// 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 *DwarfWriter::RecordSourceLine(unsigned Line, unsigned Col, + MDNode *Scope) { + return DD->recordSourceLine(Line, Col, Scope); +} + +/// getRecordSourceLineCount - Count source lines. +unsigned DwarfWriter::getRecordSourceLineCount() { + return DD->getSourceLineCount(); +} + /// ShouldEmitDwarfDebug - Returns true if Dwarf debugging declarations should /// be emitted. bool DwarfWriter::ShouldEmitDwarfDebug() const { return DD && DD->ShouldEmitDwarfDebug(); } -void DwarfWriter::BeginScope(const MachineInstr *MI) { - DD->beginScope(MI); +void DwarfWriter::BeginScope(const MachineInstr *MI, MCSymbol *L) { + DD->beginScope(MI, L); } void DwarfWriter::EndScope(const MachineInstr *MI) { DD->endScope(MI); |