aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-04-04 04:07:35 +0000
committerChris Lattner <sabre@nondot.org>2008-04-04 04:07:35 +0000
commitc8aa5f1f264fb230c38182adab944232bb160c2b (patch)
treea7ab47baf8db212c4cb252e010d502e097930b86 /lib/CodeGen/CodeGenFunction.h
parent1330b0e6e4a6ad2d586c4a45d6cece5611829a16 (diff)
Codegen assignment to self correctly, patch by David Chisnall!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49201 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r--lib/CodeGen/CodeGenFunction.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h
index 121b7953bd..61a0d744f6 100644
--- a/lib/CodeGen/CodeGenFunction.h
+++ b/lib/CodeGen/CodeGenFunction.h
@@ -246,7 +246,8 @@ public:
typedef std::pair<llvm::Value *, llvm::Value *> ComplexPairTy;
llvm::LLVMFoldingBuilder Builder;
- const FunctionDecl *CurFuncDecl;
+ // Holds the Decl for the current function or method
+ const Decl *CurFuncDecl;
QualType FnRetTy;
llvm::Function *CurFn;
@@ -293,6 +294,8 @@ public:
void GenerateCode(const FunctionDecl *FD);
const llvm::Type *ConvertType(QualType T);
+
+ llvm::Value *LoadObjCSelf();
/// hasAggregateLLVMType - Return true if the specified AST type will map into
/// an aggregate LLVM type or is void.