diff options
author | Devang Patel <dpatel@apple.com> | 2009-04-15 21:51:44 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-04-15 21:51:44 +0000 |
commit | 963dfbde17a28bc88ee1647bc85fd8407bfc9555 (patch) | |
tree | 8700538df2c0539dd2b0b5e43f35c17f2c0f4e14 /lib/CodeGen/CGBlocks.cpp | |
parent | ca29ad9fea0fd51ac622c3f2db1890fdc5dae201 (diff) |
Set DebugInfo at the beginning of GenerateBlockFunction().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69228 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGBlocks.cpp')
-rw-r--r-- | lib/CodeGen/CGBlocks.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp index f1e7420681..5047f06bd2 100644 --- a/lib/CodeGen/CGBlocks.cpp +++ b/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. |