Remove the SelectorLoc argument to Sema::BuildInstanceMesssage and

Sema::BuildClassMessage; we weren't using it, and template
instantiation was faking it anyway.

llvm-svn: 102074
This commit is contained in:
Douglas Gregor 2010-04-22 16:50:51 +00:00
parent e1f79e868a
commit 049211a670
3 changed files with 5 additions and 18 deletions

View File

@ -3887,7 +3887,6 @@ public:
SourceLocation SuperLoc,
Selector Sel,
SourceLocation LBracLoc,
SourceLocation SelectorLoc,
SourceLocation RBracLoc,
MultiExprArg Args);
@ -3904,7 +3903,6 @@ public:
SourceLocation SuperLoc,
Selector Sel,
SourceLocation LBracLoc,
SourceLocation SelectorLoc,
SourceLocation RBracLoc,
MultiExprArg Args);

View File

@ -643,16 +643,14 @@ Sema::OwningExprResult Sema::ActOnSuperMessage(Scope *S,
QualType SuperTy = Context.getObjCInterfaceType(Super);
SuperTy = Context.getObjCObjectPointerType(SuperTy);
return BuildInstanceMessage(ExprArg(*this), SuperTy, SuperLoc,
Sel, LBracLoc, SelectorLoc, RBracLoc,
move(Args));
Sel, LBracLoc, RBracLoc, move(Args));
}
// Since we are in a class method, this is a class message to
// the superclass.
return BuildClassMessage(/*ReceiverTypeInfo=*/0,
Context.getObjCInterfaceType(Super),
SuperLoc, Sel, LBracLoc, SelectorLoc,
RBracLoc, move(Args));
SuperLoc, Sel, LBracLoc, RBracLoc, move(Args));
}
/// \brief Build an Objective-C class message expression.
@ -677,8 +675,6 @@ Sema::OwningExprResult Sema::ActOnSuperMessage(Scope *S,
///
/// \param LBracLoc The location of the opening square bracket ']'.
///
/// \param SelectorLoc The location of the first identifier in the selector.
///
/// \param RBrac The location of the closing square bracket ']'.
///
/// \param Args The message arguments.
@ -687,7 +683,6 @@ Sema::OwningExprResult Sema::BuildClassMessage(TypeSourceInfo *ReceiverTypeInfo,
SourceLocation SuperLoc,
Selector Sel,
SourceLocation LBracLoc,
SourceLocation SelectorLoc,
SourceLocation RBracLoc,
MultiExprArg ArgsIn) {
if (ReceiverType->isDependentType()) {
@ -781,7 +776,7 @@ Sema::OwningExprResult Sema::ActOnClassMessage(Scope *S,
return BuildClassMessage(ReceiverTypeInfo, ReceiverType,
/*SuperLoc=*/SourceLocation(), Sel,
LBracLoc, SelectorLoc, RBracLoc, move(Args));
LBracLoc, RBracLoc, move(Args));
}
/// \brief Build an Objective-C instance message expression.
@ -806,8 +801,6 @@ Sema::OwningExprResult Sema::ActOnClassMessage(Scope *S,
///
/// \param LBracLoc The location of the opening square bracket ']'.
///
/// \param SelectorLoc The location of the first identifier in the selector.
///
/// \param RBrac The location of the closing square bracket ']'.
///
/// \param Args The message arguments.
@ -816,7 +809,6 @@ Sema::OwningExprResult Sema::BuildInstanceMessage(ExprArg ReceiverE,
SourceLocation SuperLoc,
Selector Sel,
SourceLocation LBracLoc,
SourceLocation SelectorLoc,
SourceLocation RBracLoc,
MultiExprArg ArgsIn) {
// If we have a receiver expression, perform appropriate promotions
@ -1001,7 +993,6 @@ Sema::OwningExprResult Sema::ActOnInstanceMessage(Scope *S,
return BuildInstanceMessage(move(ReceiverE), Receiver->getType(),
/*SuperLoc=*/SourceLocation(),
Sel, LBracLoc, SelectorLoc, RBracLoc,
move(Args));
Sel, LBracLoc, RBracLoc, move(Args));
}

View File

@ -1704,7 +1704,6 @@ public:
/*SuperLoc=*/SourceLocation(),
Sel,
LBracLoc,
/*FIXME:*/LBracLoc,
RBracLoc,
move(Args));
}
@ -1723,7 +1722,6 @@ public:
/*SuperLoc=*/SourceLocation(),
Sel,
LBracLoc,
/*FIXME:*/LBracLoc,
RBracLoc,
move(Args));
}
@ -2339,7 +2337,7 @@ TreeTransform<Derived>::TransformBlockPointerType(TypeLocBuilder &TLB,
return QualType();
}
BlockPointerLoc NewT = TLB.push<BlockPointerLoc>(Result);
BlockPointerTypeLoc NewT = TLB.push<BlockPointerTypeLoc>(Result);
NewT.setSigilLoc(TL.getSigilLoc());
return Result;
}