summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGBlocks.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-04-15 21:51:44 +0000
committerDevang Patel <dpatel@apple.com>2009-04-15 21:51:44 +0000
commit9074ed8c6a05be2445769efc0d11ba7bbe464278 (patch)
treed3b5c6412f595908cab667feea856a4a666b2ab2 /clang/lib/CodeGen/CGBlocks.cpp
parent332ef55cf27c8bba68729368b3c331c20f776df0 (diff)
downloadbcm5719-llvm-9074ed8c6a05be2445769efc0d11ba7bbe464278.tar.gz
bcm5719-llvm-9074ed8c6a05be2445769efc0d11ba7bbe464278.zip
Set DebugInfo at the beginning of GenerateBlockFunction().
llvm-svn: 69228
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
-rw-r--r--clang/lib/CodeGen/CGBlocks.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp
index f1e74206819..5047f06bd23 100644
--- a/clang/lib/CodeGen/CGBlocks.cpp
+++ b/clang/lib/CodeGen/CGBlocks.cpp
@@ -600,6 +600,11 @@ CodeGenFunction::GenerateBlockFunction(const BlockExpr *BExpr,
uint64_t &Align,
llvm::SmallVector<const Expr *, 8> &subBlockDeclRefDecls,
bool &subBlockHasCopyDispose) {
+
+ // Check if we should generate debug info for this block.
+ if (CGM.getDebugInfo())
+ DebugInfo = CGM.getDebugInfo();
+
// Arrange for local static and local extern declarations to appear
// to be local to this function as well, as they are directly referenced
// in a block.
OpenPOWER on IntegriCloud