diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-09 02:08:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-09 02:08:02 +0000 |
commit | 06c5e9060c1dcfcdd1cca61efee67f1212dd4e80 (patch) | |
tree | 71703cd363262f2f9c029974828a2e93d0fc210c /llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp | |
parent | e13c37232a3687dd6739dcd272a6072c0d7ee962 (diff) | |
download | bcm5719-llvm-06c5e9060c1dcfcdd1cca61efee67f1212dd4e80.tar.gz bcm5719-llvm-06c5e9060c1dcfcdd1cca61efee67f1212dd4e80.zip |
Now that setStartLabel takes an MCSymbol, we can de-ID'ize
beginScope and RecordSourceLine.
llvm-svn: 98035
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp index 08e1bbce08f..9fd4c447854 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp @@ -73,11 +73,11 @@ void DwarfWriter::EndFunction(const MachineFunction *MF) { MMI->EndFunction(); } -/// RecordSourceLine - Records location information and associates it with a -/// label. Returns a unique label ID used to generate a label and provide -/// correspondence to the source line list. -unsigned DwarfWriter::RecordSourceLine(unsigned Line, unsigned Col, - MDNode *Scope) { +/// 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); } @@ -92,7 +92,7 @@ bool DwarfWriter::ShouldEmitDwarfDebug() const { return DD && DD->ShouldEmitDwarfDebug(); } -void DwarfWriter::BeginScope(const MachineInstr *MI, unsigned L) { +void DwarfWriter::BeginScope(const MachineInstr *MI, MCSymbol *L) { DD->beginScope(MI, L); } void DwarfWriter::EndScope(const MachineInstr *MI) { |