From 7dfa4079f4b37507048b19bfc693d3b015d9dd11 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Sat, 12 Sep 2009 02:14:24 +0000 Subject: For __block variables, cache the LLVM types as well as which LLVM field where the variable is stored. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81599 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenFunction.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/CodeGen/CodeGenFunction.h') diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 5886035f29..a81f67bda3 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -292,6 +292,16 @@ private: /// we know how many temporaries were created by a certain expression. llvm::SmallVector ConditionalTempDestructionStack; + + /// ByrefValueInfoMap - For each __block variable, contains a pair of the LLVM + /// type as well as the field number that contains the actual data. + llvm::DenseMap > ByRefValueInfo; + + /// getByrefValueFieldNumber - Given a declaration, returns the LLVM field + /// number that holds the value. + unsigned getByRefValueLLVMField(const ValueDecl *VD) const; + public: CodeGenFunction(CodeGenModule &cgm); -- cgit v1.2.3-70-g09d2