Revert "Debug info: Ensure that the last stop point in a function is still within"

This reverts commit r198461.

llvm-svn: 198714
This commit is contained in:
Adrian Prantl
2014-01-07 22:05:52 +00:00
parent c6758879b3
commit e83b130def
7 changed files with 11 additions and 24 deletions

View File

@@ -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);
else
DI->EmitLocation(Builder, EndLoc, false, LastStopPoint.second);
DI->EmitLocation(Builder, EndLoc);
}
// 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);
}
// Emit function epilog (to return).