summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-05-02 20:37:08 +0000
committerDevang Patel <dpatel@apple.com>2011-05-02 20:37:08 +0000
commit2a7c219466044abb7f9d92148dd2f8694b3fdac2 (patch)
tree9a1e94147d89731369a287f6bb5e3a267da8c9bb /clang/lib
parent16f7cf6a2f2e4bc5910185be47d4430b13b2cbf3 (diff)
downloadbcm5719-llvm-2a7c219466044abb7f9d92148dd2f8694b3fdac2.tar.gz
bcm5719-llvm-2a7c219466044abb7f9d92148dd2f8694b3fdac2.zip
Emit debug info for __destroy_helper_block_ and __copy_helper_block.
llvm-svn: 130719
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/CodeGen/CGBlocks.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp
index 99a69a4f4a9..f26d79c0667 100644
--- a/clang/lib/CodeGen/CGBlocks.cpp
+++ b/clang/lib/CodeGen/CGBlocks.cpp
@@ -1063,6 +1063,10 @@ CodeGenFunction::GenerateCopyHelperFunction(const CGBlockInfo &blockInfo) {
IdentifierInfo *II
= &CGM.getContext().Idents.get("__copy_helper_block_");
+ // Check if we should generate debug info for this block helper function.
+ if (CGM.getModuleDebugInfo())
+ DebugInfo = CGM.getModuleDebugInfo();
+
FunctionDecl *FD = FunctionDecl::Create(C,
C.getTranslationUnitDecl(),
SourceLocation(),
@@ -1150,6 +1154,10 @@ CodeGenFunction::GenerateDestroyHelperFunction(const CGBlockInfo &blockInfo) {
llvm::Function::Create(LTy, llvm::GlobalValue::InternalLinkage,
"__destroy_helper_block_", &CGM.getModule());
+ // Check if we should generate debug info for this block destroy function.
+ if (CGM.getModuleDebugInfo())
+ DebugInfo = CGM.getModuleDebugInfo();
+
IdentifierInfo *II
= &CGM.getContext().Idents.get("__destroy_helper_block_");
OpenPOWER on IntegriCloud