Remove unused function arguments. NFC.

llvm-svn: 263080
This commit is contained in:
Alexey Samsonov 2016-03-10 00:20:33 +00:00
parent 391075c38e
commit efa956cea0
1 changed files with 8 additions and 8 deletions

View File

@ -24,10 +24,11 @@
using namespace clang;
using namespace CodeGen;
static RequiredArgs commonEmitCXXMemberOrOperatorCall(
CodeGenFunction &CGF, const CXXMethodDecl *MD, llvm::Value *Callee,
ReturnValueSlot ReturnValue, llvm::Value *This, llvm::Value *ImplicitParam,
QualType ImplicitParamTy, const CallExpr *CE, CallArgList &Args) {
static RequiredArgs
commonEmitCXXMemberOrOperatorCall(CodeGenFunction &CGF, const CXXMethodDecl *MD,
llvm::Value *This, llvm::Value *ImplicitParam,
QualType ImplicitParamTy, const CallExpr *CE,
CallArgList &Args) {
assert(CE == nullptr || isa<CXXMemberCallExpr>(CE) ||
isa<CXXOperatorCallExpr>(CE));
assert(MD->isInstance() &&
@ -76,8 +77,7 @@ RValue CodeGenFunction::EmitCXXMemberOrOperatorCall(
const FunctionProtoType *FPT = MD->getType()->castAs<FunctionProtoType>();
CallArgList Args;
RequiredArgs required = commonEmitCXXMemberOrOperatorCall(
*this, MD, Callee, ReturnValue, This, ImplicitParam, ImplicitParamTy, CE,
Args);
*this, MD, This, ImplicitParam, ImplicitParamTy, CE, Args);
return EmitCall(CGM.getTypes().arrangeCXXMethodCall(Args, FPT, required),
Callee, ReturnValue, Args, MD);
}
@ -87,8 +87,8 @@ RValue CodeGenFunction::EmitCXXStructorCall(
llvm::Value *This, llvm::Value *ImplicitParam, QualType ImplicitParamTy,
const CallExpr *CE, StructorType Type) {
CallArgList Args;
commonEmitCXXMemberOrOperatorCall(*this, MD, Callee, ReturnValue, This,
ImplicitParam, ImplicitParamTy, CE, Args);
commonEmitCXXMemberOrOperatorCall(*this, MD, This, ImplicitParam,
ImplicitParamTy, CE, Args);
return EmitCall(CGM.getTypes().arrangeCXXStructorDeclaration(MD, Type),
Callee, ReturnValue, Args, MD);
}