diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-03-05 02:05:42 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-03-05 02:05:42 +0000 |
commit | 07c03d316d1533626f3d9967853abc6f799fa92e (patch) | |
tree | 1e992b91e6b2f0072dc1218b1f07cdd640332754 /llvm/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.cpp | |
parent | c89aa6d6972cae3b071b52b59e1fe5c3610ae376 (diff) | |
download | bcm5719-llvm-07c03d316d1533626f3d9967853abc6f799fa92e.tar.gz bcm5719-llvm-07c03d316d1533626f3d9967853abc6f799fa92e.zip |
Use the existing begin and end symbol for debug info.
llvm-svn: 231338
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.cpp b/llvm/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.cpp index b5e0929efd9..96a50367902 100644 --- a/llvm/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.cpp @@ -364,10 +364,7 @@ void WinCodeViewLineTables::endFunction(const MachineFunction *MF) { FnDebugInfo.erase(GV); VisitedFunctions.pop_back(); } else { - // Define end label for subprogram. - MCSymbol *FunctionEndSym = Asm->OutStreamer.getContext().CreateTempSymbol(); - Asm->OutStreamer.EmitLabel(FunctionEndSym); - CurFn->End = FunctionEndSym; + CurFn->End = Asm->getFunctionEnd(); } CurFn = nullptr; } |