aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGBlocks.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-10-11 23:00:55 +0000
committerEric Christopher <echristo@apple.com>2011-10-11 23:00:55 +0000
commit498b7fd7fead79c5ba6bcabc34fd296bd4a61d43 (patch)
tree57d1f57763554231b754ee9d49ff1443fd560c1b /clang/lib/CodeGen/CGBlocks.cpp
parentfefafacf68ade0587cde048de7aaddadf37ec16a (diff)
downloadllvm-498b7fd7fead79c5ba6bcabc34fd296bd4a61d43.zip
llvm-498b7fd7fead79c5ba6bcabc34fd296bd4a61d43.tar.gz
llvm-498b7fd7fead79c5ba6bcabc34fd296bd4a61d43.tar.bz2
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 llvm-svn: 141732
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
-rw-r--r--clang/lib/CodeGen/CGBlocks.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp
index 5cbaff9..9694953 100644
--- a/clang/lib/CodeGen/CGBlocks.cpp
+++ b/clang/lib/CodeGen/CGBlocks.cpp
@@ -996,7 +996,7 @@ CodeGenFunction::GenerateBlockFunction(GlobalDecl GD,
for (BlockDecl::capture_const_iterator ci = blockDecl->capture_begin(),
ce = blockDecl->capture_end(); ci != ce; ++ci) {
const VarDecl *variable = ci->getVariable();
- DI->setLocation(variable->getLocation());
+ DI->EmitLocation(Builder, variable->getLocation());
const CGBlockInfo::Capture &capture = blockInfo.getCapture(variable);
if (capture.isConstant()) {