diff options
author | Chris Lattner <sabre@nondot.org> | 2008-06-17 18:05:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-06-17 18:05:57 +0000 |
commit | 4111024be81e7c0525e42dadcc126d27e5bf2425 (patch) | |
tree | e29124f0d892b86e0c4a155f0366c82117dbedaa /lib/CodeGen/CodeGenFunction.h | |
parent | e5d12e8003acab516a58a01f71aae012458a4572 (diff) |
Change self/_cmd to be instances of ImplicitParamDecl instead of ParmVarDecl.
Patch by David Chisnall!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52422 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 6712d2f05f..b62042508c 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -232,7 +232,7 @@ public: llvm::IRBuilder Builder; // Holds the Decl for the current function or method - const FunctionDecl *CurFuncDecl; + const Decl *CurFuncDecl; QualType FnRetTy; llvm::Function *CurFn; @@ -277,11 +277,16 @@ public: void GenerateObjCMethod(const ObjCMethodDecl *OMD); void GenerateCode(const FunctionDecl *FD); + void GenerateFunction(const Stmt *Body); const llvm::Type *ConvertType(QualType T); llvm::Value *LoadObjCSelf(); - + + /// isObjCPointerType - Return true if the specificed AST type will map onto + /// some Objective-C pointer type. + static bool isObjCPointerType(QualType T); + /// hasAggregateLLVMType - Return true if the specified AST type will map into /// an aggregate LLVM type or is void. static bool hasAggregateLLVMType(QualType T); |