From 07c03d316d1533626f3d9967853abc6f799fa92e Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 5 Mar 2015 02:05:42 +0000 Subject: Use the existing begin and end symbol for debug info. llvm-svn: 231338 --- llvm/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'llvm/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.cpp') 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; } -- cgit v1.2.3