aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGCXX.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-08-10 18:46:38 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-08-10 18:46:38 +0000
commit06f598aa45b651f9f3be0b916d43876eae747af0 (patch)
tree6f775e62c3f6b44cc915ec66a3c6d8d721487518 /lib/CodeGen/CGCXX.cpp
parentf05fe65e64a5de93ba6d30e1b830fd0fc36358e9 (diff)
minor refactoring. No change otherwise.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78582 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCXX.cpp')
-rw-r--r--lib/CodeGen/CGCXX.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/CodeGen/CGCXX.cpp b/lib/CodeGen/CGCXX.cpp
index 8f6cfc05dd..417dcf748c 100644
--- a/lib/CodeGen/CGCXX.cpp
+++ b/lib/CodeGen/CGCXX.cpp
@@ -791,7 +791,18 @@ void CodeGenFunction::EmitClassMemberwiseCopy(
Callee, CallArgs, BaseCopyCtor);
}
}
-
+
+/// SynthesizeDefaultConstructor - synthesize a default constructor
+void
+CodeGenFunction::SynthesizeDefaultConstructor(const CXXConstructorDecl *CD,
+ const FunctionDecl *FD,
+ llvm::Function *Fn,
+ const FunctionArgList &Args) {
+ StartFunction(FD, FD->getResultType(), Fn, Args, SourceLocation());
+ EmitCtorPrologue(CD);
+ FinishFunction();
+}
+
/// SynthesizeCXXCopyConstructor - This routine implicitly defines body of a copy
/// constructor, in accordance with section 12.8 (p7 and p8) of C++03
/// The implicitly-defined copy constructor for class X performs a memberwise