summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-05-03 23:27:19 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-05-03 23:27:19 +0000
commit79be34012f0c551ecddd2d08c79f4df301654cbf (patch)
treee7d3ad237e9e2a6ab6b3b970ae838c0cac4b691f /llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
parentd22aa4a5e5f6587c1f52e46db1ceb76d68e3ccf1 (diff)
downloadbcm5719-llvm-79be34012f0c551ecddd2d08c79f4df301654cbf.tar.gz
bcm5719-llvm-79be34012f0c551ecddd2d08c79f4df301654cbf.zip
Revert r70803 for now, it causes a regression.
llvm-svn: 70811
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
index 0d21dea2514..848f45ea8c9 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
@@ -3262,6 +3262,13 @@ 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());
+ }
+
if (TimePassesIsEnabled)
DebugTimer->stopTimer();
}
OpenPOWER on IntegriCloud