diff options
author | John McCall <rjmccall@apple.com> | 2010-02-18 03:17:58 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-02-18 03:17:58 +0000 |
commit | a355e07454463b19829ac92ffd115a097faff0e0 (patch) | |
tree | cb39601140d9cac19861c911455c00ca7451dfef /lib/CodeGen/CodeGenFunction.h | |
parent | e77f443dbca8cdc23e5aa94a2653367e4a7cbe47 (diff) |
Extract out function-body code generation into its own method. No functionality
change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96564 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index a694b894df..29c75fdb8e 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -494,6 +494,8 @@ public: const FunctionArgList &Args, SourceLocation StartLoc); + void GenerateBody(GlobalDecl GD, llvm::Function *Fn, FunctionArgList &Args); + /// EmitReturnBlock - Emit the unified return block, trying to avoid its /// emission when possible. void EmitReturnBlock(); @@ -536,15 +538,9 @@ public: llvm::Function *Fn, const FunctionArgList &Args); - void SynthesizeDefaultConstructor(const CXXConstructorDecl *Ctor, - CXXCtorType Type, - llvm::Function *Fn, - const FunctionArgList &Args); - - void SynthesizeDefaultDestructor(const CXXDestructorDecl *Dtor, - CXXDtorType Type, - llvm::Function *Fn, - const FunctionArgList &Args); + void SynthesizeImplicitFunctionBody(GlobalDecl GD, + llvm::Function *Fn, + const FunctionArgList &Args); /// EmitDtorEpilogue - Emit all code that comes at the end of class's /// destructor. This is to call destructors on members and base classes in |