]> granicus.if.org Git - clang/commitdiff
IRgen: Make sure any prolog instructions get debug info.
authorDaniel Dunbar <daniel@zuster.org>
Wed, 30 Jun 2010 21:27:56 +0000 (21:27 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 30 Jun 2010 21:27:56 +0000 (21:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107320 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenFunction.cpp

index 6df3af2b9814c2a9824bce469950e27ef48fb57e..85d25b411dee688193b047223974d28f3d21390c 100644 (file)
@@ -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");