summaryrefslogtreecommitdiffstats
path: root/clang/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
commit5506f8cf4c6e9f606990bf69561abeb83d4100f3 (patch)
treed987dfdc575a6c4d811d04f4b7ab9cce55b5a571 /clang/lib/CodeGen/CodeGenFunction.h
parent002e4bd158d3142681847670c9d4f0754f166767 (diff)
downloadbcm5719-llvm-5506f8cf4c6e9f606990bf69561abeb83d4100f3.tar.gz
bcm5719-llvm-5506f8cf4c6e9f606990bf69561abeb83d4100f3.zip
Codegen assignment to self correctly, patch by David Chisnall!
llvm-svn: 49201
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index 121b7953bdc..61a0d744f60 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/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.
OpenPOWER on IntegriCloud