Pass the type of the block literal around to make required temporal ordering of code clearer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66284 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGBlocks.h b/lib/CodeGen/CGBlocks.h
index e915a51..5d6c089 100644
--- a/lib/CodeGen/CGBlocks.h
+++ b/lib/CodeGen/CGBlocks.h
@@ -158,11 +158,11 @@
ImplicitParamDecl *BlockStructDecl;
ImplicitParamDecl *getBlockStructDecl() { return BlockStructDecl; }
- llvm::Constant *GenerateCopyHelperFunction();
- llvm::Constant *GenerateDestroyHelperFunction();
+ llvm::Constant *GenerateCopyHelperFunction(const llvm::Type *);
+ llvm::Constant *GenerateDestroyHelperFunction(const llvm::Type *);
- llvm::Constant *BuildCopyHelper();
- llvm::Constant *BuildDestroyHelper();
+ llvm::Constant *BuildCopyHelper(const llvm::Type *);
+ llvm::Constant *BuildDestroyHelper(const llvm::Type *);
llvm::Constant *GeneratebyrefCopyHelperFunction(const llvm::Type *, int flag);
llvm::Constant *GeneratebyrefDestroyHelperFunction(const llvm::Type *T, int);