aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-09-14 05:32:02 +0000
committerAnders Carlsson <andersca@mac.com>2009-09-14 05:32:02 +0000
commitde1d26b9c1d8823b173e4d77015ad88b4da70559 (patch)
tree746d7ea4b156244a6feee11aafeb727620c7ae01 /lib/CodeGen/CodeGenFunction.cpp
parent34771b594ca8cdf8cd2e40b27170efa4ed2833c5 (diff)
Remove an unnecessary FunctionDecl parameter to the synthesizing functions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81759 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--lib/CodeGen/CodeGenFunction.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp
index a3ce8a5958..0ed61bf0de 100644
--- a/lib/CodeGen/CodeGenFunction.cpp
+++ b/lib/CodeGen/CodeGenFunction.cpp
@@ -236,10 +236,10 @@ void CodeGenFunction::GenerateCode(GlobalDecl GD,
if (const CompoundStmt *S = FD->getCompoundBody()) {
StartFunction(GD, FD->getResultType(), Fn, Args, S->getLBracLoc());
if (const CXXConstructorDecl *CD = dyn_cast<CXXConstructorDecl>(FD))
- EmitCtorPrologue(CD);
+ EmitCtorPrologue(CD, GD.getCtorType());
EmitStmt(S);
if (const CXXDestructorDecl *DD = dyn_cast<CXXDestructorDecl>(FD))
- EmitDtorEpilogue(DD);
+ EmitDtorEpilogue(DD, GD.getDtorType());
FinishFunction(S->getRBracLoc());
}
else
@@ -250,19 +250,19 @@ void CodeGenFunction::GenerateCode(GlobalDecl GD,
if (CD->isCopyConstructor(getContext())) {
assert(!ClassDecl->hasUserDeclaredCopyConstructor() &&
"bogus constructor is being synthesize");
- SynthesizeCXXCopyConstructor(GD, FD, Fn, Args);
+ SynthesizeCXXCopyConstructor(CD, GD.getCtorType(), Fn, Args);
}
else {
assert(!ClassDecl->hasUserDeclaredConstructor() &&
"bogus constructor is being synthesize");
- SynthesizeDefaultConstructor(GD, FD, Fn, Args);
+ SynthesizeDefaultConstructor(CD, GD.getCtorType(), Fn, Args);
}
}
- else if (isa<CXXDestructorDecl>(FD))
- SynthesizeDefaultDestructor(GD, FD, Fn, Args);
+ else if (const CXXDestructorDecl *CD = dyn_cast<CXXDestructorDecl>(FD))
+ SynthesizeDefaultDestructor(CD, GD.getDtorType(), Fn, Args);
else if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(FD)) {
if (MD->isCopyAssignment())
- SynthesizeCXXCopyAssignment(MD, FD, Fn, Args);
+ SynthesizeCXXCopyAssignment(MD, Fn, Args);
}
// Destroy the 'this' declaration.