From 50198098b95d30dc027ac4f89e77a727b3a25635 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Thu, 2 Dec 2010 17:02:11 +0000 Subject: IR Gen. part of API support for __block cxx objects imported into blocks. //rdar://8594790. Will have a test case coming (as well as one sent to llvm test suite). llvm-svn: 120713 --- clang/lib/CodeGen/CGBlocks.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'clang/lib/CodeGen/CGBlocks.h') diff --git a/clang/lib/CodeGen/CGBlocks.h b/clang/lib/CodeGen/CGBlocks.h index f82ce117b34..a1453f68161 100644 --- a/clang/lib/CodeGen/CGBlocks.h +++ b/clang/lib/CodeGen/CGBlocks.h @@ -189,13 +189,16 @@ public: llvm::Constant *BuildDestroyHelper(const llvm::StructType *, std::vector *); - llvm::Constant *GeneratebyrefCopyHelperFunction(const llvm::Type *, int flag); - llvm::Constant *GeneratebyrefDestroyHelperFunction(const llvm::Type *T, int); + llvm::Constant *GeneratebyrefCopyHelperFunction(const llvm::Type *, int flag, + const VarDecl *BD); + llvm::Constant *GeneratebyrefDestroyHelperFunction(const llvm::Type *T, + int flag, + const VarDecl *BD); llvm::Constant *BuildbyrefCopyHelper(const llvm::Type *T, int flag, - unsigned Align); + unsigned Align, const VarDecl *BD); llvm::Constant *BuildbyrefDestroyHelper(const llvm::Type *T, int flag, - unsigned Align); + unsigned Align, const VarDecl *BD); void BuildBlockRelease(llvm::Value *DeclPtr, int flag = BLOCK_FIELD_IS_BYREF); -- cgit v1.2.3