summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-07-22 22:29:16 +0000
committerDevang Patel <dpatel@apple.com>2010-07-22 22:29:16 +0000
commit0884a60eb5b26a9a9fd716e408cf6dcd8b4d1d7d (patch)
tree15b2dcaa83124ae80b3ca56d2eea6542a0d37a39 /clang/lib/CodeGen/CodeGenFunction.cpp
parentc2f81007c01b2c791c656f5d8c69f1d585b1b6df (diff)
downloadbcm5719-llvm-0884a60eb5b26a9a9fd716e408cf6dcd8b4d1d7d.tar.gz
bcm5719-llvm-0884a60eb5b26a9a9fd716e408cf6dcd8b4d1d7d.zip
Keep track of artificial scopes introduced by line directives. For example,
#line 41 "bar.c" dummy (1, i); #line 24 "bar.h" i = f2 (i); #line 44 "bar.c" This is tested by step-line.exp in gdb testsuite. llvm-svn: 109189
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index fe374ef9f6d..dbebd136ba0 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -139,7 +139,7 @@ void CodeGenFunction::FinishFunction(SourceLocation EndLoc) {
// Emit debug descriptor for function end.
if (CGDebugInfo *DI = getDebugInfo()) {
DI->setLocation(EndLoc);
- DI->EmitRegionEnd(Builder);
+ DI->EmitFunctionEnd(Builder);
}
EmitFunctionEpilog(*CurFnInfo);
OpenPOWER on IntegriCloud