diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-06-30 21:27:56 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-06-30 21:27:56 +0000 |
commit | 727bd9731c4d9f8a369dc82afae39ad9877f92ab (patch) | |
tree | 14c053335f1bcade36be91de31b0393b16021198 /lib/CodeGen/CodeGenFunction.cpp | |
parent | fa297fb29b38991c537a0ae90ff595102dcd21a9 (diff) |
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
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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"); |