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 | 5696e7badf181efd93355bd55718f422252362b0 (patch) | |
| tree | 9562bea195fea80d837014b9707e87a8fab94013 /clang/lib/CodeGen/CodeGenFunction.h | |
| parent | 5e4188f1acd814dff1f2155c05576f8892223c40 (diff) | |
| download | bcm5719-llvm-5696e7badf181efd93355bd55718f422252362b0.tar.gz bcm5719-llvm-5696e7badf181efd93355bd55718f422252362b0.zip | |
Change self/_cmd to be instances of ImplicitParamDecl instead of ParmVarDecl.
Patch by David Chisnall!
llvm-svn: 52422
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 6712d2f05f1..b62042508cb 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/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); |

