Move more blocks CodeGenFunction code up and out.
llvm-svn: 66049
This commit is contained in:
@@ -268,34 +268,11 @@ public:
|
||||
llvm::Value *BuildBlockLiteralTmp(const BlockExpr *);
|
||||
llvm::Constant *BuildDescriptorBlockDecl(uint64_t Size);
|
||||
|
||||
/// BlockInfo - Information to generate a block literal.
|
||||
struct BlockInfo {
|
||||
/// BlockLiteralTy - The type of the block literal.
|
||||
const llvm::Type *BlockLiteralTy;
|
||||
|
||||
/// Name - the name of the function this block was created for, if any
|
||||
const char *Name;
|
||||
|
||||
/// ByCopyDeclRefs - Variables from parent scopes that have been imported
|
||||
/// into this block.
|
||||
llvm::SmallVector<const BlockDeclRefExpr *, 8> ByCopyDeclRefs;
|
||||
|
||||
// ByRefDeclRefs - __block variables from parent scopes that have been
|
||||
// imported into this block.
|
||||
llvm::SmallVector<const BlockDeclRefExpr *, 8> ByRefDeclRefs;
|
||||
|
||||
BlockInfo(const llvm::Type *blt, const char *n)
|
||||
: BlockLiteralTy(blt), Name(n) {}
|
||||
};
|
||||
|
||||
llvm::Function *GenerateBlockFunction(const BlockExpr *BExpr,
|
||||
const BlockInfo& Info,
|
||||
uint64_t &Size, uint64_t &Align,
|
||||
llvm::SmallVector<const Expr *, 8> &subBlockDeclRefDecls);
|
||||
|
||||
ImplicitParamDecl *BlockStructDecl;
|
||||
|
||||
ImplicitParamDecl *getBlockStructDecl() { return BlockStructDecl; }
|
||||
|
||||
llvm::Value *LoadBlockStruct();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user