diff options
author | Devang Patel <dpatel@apple.com> | 2011-05-02 20:37:08 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-05-02 20:37:08 +0000 |
commit | 2a7c219466044abb7f9d92148dd2f8694b3fdac2 (patch) | |
tree | 9a1e94147d89731369a287f6bb5e3a267da8c9bb /clang/lib/CodeGen | |
parent | 16f7cf6a2f2e4bc5910185be47d4430b13b2cbf3 (diff) | |
download | bcm5719-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/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGBlocks.cpp | 8 |
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_"); |