diff options
author | Adrian Prantl <aprantl@apple.com> | 2014-01-07 19:24:24 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2014-01-07 19:24:24 +0000 |
commit | f5ff0dc29b3129c26c06682f06a871d37090b6bd (patch) | |
tree | a8e05c6888fbf44fd0e7b4aa7ea937888305319e /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 70d4ba7f19a920087c1201a68a997f54bb878894 (diff) | |
download | llvm-f5ff0dc29b3129c26c06682f06a871d37090b6bd.zip llvm-f5ff0dc29b3129c26c06682f06a871d37090b6bd.tar.gz llvm-f5ff0dc29b3129c26c06682f06a871d37090b6bd.tar.bz2 |
Debug info: Implement a cleaner version of r198461. For symmetry with
C and C++ don't emit an extra lexical scope for the compound statement
that is the body of an Objective-C method.
rdar://problem/15010825
llvm-svn: 198699
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index fb668e4..04c60f6 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -209,10 +209,9 @@ void CodeGenFunction::FinishFunction(SourceLocation EndLoc) { // all will be fine. if (CGDebugInfo *DI = getDebugInfo()) { if (OnlySimpleReturnStmts) - DI->EmitLocation(Builder, LastStopPoint.first, - false, LastStopPoint.second); + DI->EmitLocation(Builder, LastStopPoint, false); else - DI->EmitLocation(Builder, EndLoc, false, LastStopPoint.second); + DI->EmitLocation(Builder, EndLoc, false); } // Pop any cleanups that might have been associated with the @@ -229,7 +228,7 @@ void CodeGenFunction::FinishFunction(SourceLocation EndLoc) { if (CGDebugInfo *DI = getDebugInfo()) if (OnlySimpleReturnStmts) - DI->EmitLocation(Builder, EndLoc, false, LastStopPoint.second); + DI->EmitLocation(Builder, EndLoc, false); } // Emit function epilog (to return). |