diff options
| author | Eric Christopher <echristo@apple.com> | 2011-10-11 23:00:55 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@apple.com> | 2011-10-11 23:00:55 +0000 |
| commit | 4b2d5498729a74a8e952bdf762e6f2d8c6b52690 (patch) | |
| tree | 3ca9bd8b46c467997c178215147c51deab34af89 /lib/CodeGen/CGExpr.cpp | |
| parent | ab5278e0ead5697ff27ef69d960c3e138b299ce6 (diff) | |
| download | clang-4b2d5498729a74a8e952bdf762e6f2d8c6b52690.tar.gz clang-4b2d5498729a74a8e952bdf762e6f2d8c6b52690.tar.bz2 clang-4b2d5498729a74a8e952bdf762e6f2d8c6b52690.tar.xz | |
Start handling debug line and scope information better:
Migrate most of the location setting within the larger API in CGDebugInfo and
update a lot of callers.
Remove the existing file/scope change machinery in UpdateLineDirectiveRegion
and replace it with DILexicalBlockFile usage.
Finishes off the rest of rdar://10246360
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141732 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
| -rw-r--r-- | lib/CodeGen/CGExpr.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp index 329dc5aa97..ad27506d56 100644 --- a/lib/CodeGen/CGExpr.cpp +++ b/lib/CodeGen/CGExpr.cpp @@ -2180,10 +2180,8 @@ LValue CodeGenFunction::EmitMaterializeTemporaryExpr( RValue CodeGenFunction::EmitCallExpr(const CallExpr *E, ReturnValueSlot ReturnValue) { - if (CGDebugInfo *DI = getDebugInfo()) { - DI->setLocation(E->getLocStart()); - DI->EmitLocation(Builder); - } + if (CGDebugInfo *DI = getDebugInfo()) + DI->EmitLocation(Builder, E->getLocStart()); // Builtins never have block type. if (E->getCallee()->getType()->isBlockPointerType()) |
