diff options
author | Anders Carlsson <andersca@mac.com> | 2009-09-11 00:07:24 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-09-11 00:07:24 +0000 |
commit | 0ff8bafde95f6fa51ccea70738c1b99db870bddc (patch) | |
tree | b290b7d3e83628560c4f13023792a630f679e424 /lib/CodeGen/CodeGenFunction.h | |
parent | 555b4bb2749aea2ec8e2adc351a71ec1cb9bdc33 (diff) |
Pass GlobalDecls to GenerateCode and StartFunction.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81485 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 07804a9396..c7aefb64e2 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -345,9 +345,8 @@ public: llvm::Value *GetAddrOfBlockDecl(const BlockDeclRefExpr *E); const llvm::Type *BuildByRefType(const ValueDecl *D); - void GenerateCode(const FunctionDecl *FD, - llvm::Function *Fn); - void StartFunction(const Decl *D, QualType RetTy, + void GenerateCode(GlobalDecl GD, llvm::Function *Fn); + void StartFunction(GlobalDecl GD, QualType RetTy, llvm::Function *Fn, const FunctionArgList &Args, SourceLocation StartLoc); @@ -369,7 +368,7 @@ public: void EmitCtorPrologue(const CXXConstructorDecl *CD); - void SynthesizeCXXCopyConstructor(const CXXConstructorDecl *CD, + void SynthesizeCXXCopyConstructor(GlobalDecl GD, const FunctionDecl *FD, llvm::Function *Fn, const FunctionArgList &Args); @@ -379,12 +378,12 @@ public: llvm::Function *Fn, const FunctionArgList &Args); - void SynthesizeDefaultConstructor(const CXXConstructorDecl *CD, + void SynthesizeDefaultConstructor(GlobalDecl GD, const FunctionDecl *FD, llvm::Function *Fn, const FunctionArgList &Args); - void SynthesizeDefaultDestructor(const CXXDestructorDecl *CD, + void SynthesizeDefaultDestructor(GlobalDecl GD, const FunctionDecl *FD, llvm::Function *Fn, const FunctionArgList &Args); |