From: Daniel Dunbar Date: Wed, 30 Jun 2010 21:27:56 +0000 (+0000) Subject: IRgen: Make sure any prolog instructions get debug info. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=727bd9731c4d9f8a369dc82afae39ad9877f92ab;p=clang IRgen: Make sure any prolog instructions get debug info. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107320 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index 6df3af2b98..85d25b411d 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -254,6 +254,7 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy, if (CGDebugInfo *DI = getDebugInfo()) { DI->setLocation(StartLoc); DI->EmitFunctionStart(GD, FnType, CurFn, Builder); + DI->EmitStopPoint(CurFn, Builder); } EmitFunctionInstrumentation("__cyg_profile_func_enter");