From a355e07454463b19829ac92ffd115a097faff0e0 Mon Sep 17 00:00:00 2001 From: John McCall Date: Thu, 18 Feb 2010 03:17:58 +0000 Subject: 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 --- lib/CodeGen/CodeGenFunction.h | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'lib/CodeGen/CodeGenFunction.h') 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 -- cgit v1.2.3