summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.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
commit9d3405ceab027b9276b8ec7142247376dc3e07ce (patch)
tree69756c19015dad5171470f6bd76098de10c3d2a9 /clang/lib/CodeGen/CodeGenFunction.cpp
parent17410a4b92847af4a214082633c38791e243751e (diff)
downloadbcm5719-llvm-9d3405ceab027b9276b8ec7142247376dc3e07ce.tar.gz
bcm5719-llvm-9d3405ceab027b9276b8ec7142247376dc3e07ce.zip
minor refactoring. No change otherwise.
llvm-svn: 78582
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index 6135f65513d..309c76bea5c 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -251,9 +251,7 @@ void CodeGenFunction::GenerateCode(const FunctionDecl *FD,
else {
assert(!ClassDecl->hasUserDeclaredConstructor() &&
"bogus constructor is being synthesize");
- StartFunction(FD, FD->getResultType(), Fn, Args, SourceLocation());
- EmitCtorPrologue(CD);
- FinishFunction();
+ SynthesizeDefaultConstructor(CD, FD, Fn, Args);
}
}
OpenPOWER on IntegriCloud