diff options
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index f6196fe64f2..ce4a424c338 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -243,6 +243,18 @@ public: void GenerateObjCSetter(ObjCImplementationDecl *IMP, const ObjCPropertyImplDecl *PID); + struct BlockInfo { + const llvm::Type *BlockLiteralTy; + + const char *NameSuffix; + + BlockInfo(const llvm::Type *blt, const char *ns) + : BlockLiteralTy(blt), NameSuffix(ns) {} + }; + + llvm::Function *GenerateBlockFunction(const BlockExpr *Expr, + const BlockInfo& Info); + void GenerateCode(const FunctionDecl *FD, llvm::Function *Fn); void StartFunction(const Decl *D, QualType RetTy, |