IRgen: Make sure any prolog instructions get debug info.
llvm-svn: 107320
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user