diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-05-04 16:23:49 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-05-04 16:23:49 +0000 |
| commit | 9ae29b2d8f9475d308474ee14dff65e164fddc2c (patch) | |
| tree | 30f21998bb3299ad0f1615b081d43acde3e071f6 /llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp | |
| parent | 863f68aa0668d3592abf20046395119d27c70b4f (diff) | |
| download | bcm5719-llvm-9ae29b2d8f9475d308474ee14dff65e164fddc2c.tar.gz bcm5719-llvm-9ae29b2d8f9475d308474ee14dff65e164fddc2c.zip | |
-Remove the DwarfWriter::RecordSourceLine calls from the instruction selectors.
-Depend on DebugLocs for source line info.
(Comes with Regression-Be-Gone(tm))
llvm-svn: 70871
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp index 848f45ea8c9..8ca8590c338 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp @@ -3262,11 +3262,12 @@ public: // Assumes in correct section after the entry point. EmitLabel("func_begin", ++SubprogramCount); - // Emit label for the implicitly defined dbg.stoppoint at the start of - // the function. - if (!Lines.empty()) { - const SrcLineInfo &LineInfo = Lines[0]; - Asm->printLabel(LineInfo.getLabelID()); + DebugLoc FDL = MF->getDefaultDebugLoc(); + if (!FDL.isUnknown()) { + DebugLocTuple DLT = MF->getDebugLocTuple(FDL); + unsigned LabelID = RecordSourceLine(DLT.Line, DLT.Col, + DICompileUnit(DLT.CompileUnit)); + Asm->printLabel(LabelID); } if (TimePassesIsEnabled) |

