From 6cc88f78fd36d3511b89412b193494b3e423cbff Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Fri, 20 Mar 2009 21:53:12 +0000 Subject: Fix codegen for support for super inside block literal expressions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67406 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenFunction.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/CodeGen/CodeGenFunction.h') diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index a54e187658..9771c83d84 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -72,7 +72,8 @@ public: typedef std::pair ComplexPairTy; CGBuilderTy Builder; - // Holds the Decl for the current function or method + /// CurFuncDecl - Holds the Decl for the current function or method. This + /// excludes BlockDecls. const Decl *CurFuncDecl; const CGFunctionInfo *CurFnInfo; QualType FnRetTy; @@ -272,11 +273,13 @@ public: llvm::Function *GenerateBlockFunction(const BlockExpr *BExpr, const BlockInfo& Info, + const Decl *OuterFuncDecl, llvm::DenseMap ldm, uint64_t &Size, uint64_t &Align, llvm::SmallVector &subBlockDeclRefDecls, bool &subBlockHasCopyDispose); + void BlockForwardSelf(); llvm::Value *LoadBlockStruct(); llvm::Value *GetAddrOfBlockDecl(const BlockDeclRefExpr *E); -- cgit v1.2.3-70-g09d2