From d7ac9a375a09a3d727e7d12dd2fc11f5e975e224 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 30 Jun 2010 21:27:56 +0000 Subject: [PATCH] IRgen: Make sure any prolog instructions get debug info. llvm-svn: 107320 --- clang/lib/CodeGen/CodeGenFunction.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 6df3af2b9814..85d25b411dee 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/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"); -- GitLab