]> granicus.if.org Git - clang/commitdiff
Remove the SelectorLoc argument to Sema::BuildInstanceMesssage and
authorDouglas Gregor <dgregor@apple.com>
Thu, 22 Apr 2010 16:50:51 +0000 (16:50 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 22 Apr 2010 16:50:51 +0000 (16:50 +0000)
Sema::BuildClassMessage; we weren't using it, and template
instantiation was faking it anyway.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102074 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/Sema.h
lib/Sema/SemaExprObjC.cpp
lib/Sema/TreeTransform.h

index eaa18071ca64dc9d7dfb9f77df4e453ee059abfc..39351bb284f52343cba0babcbc6d399d518c57b0 100644 (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);
 
index 71833f254c4077a2311088647beb3b9627411b70..343ecbc28c4cc50770a63379068e8e7e0db7073c 100644 (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));
 }
 
index 0463a12f0917d04aad27b51bddab1da5831bdcb5..6a7f6cbdf4caca7f15478b19d5404746ac50a964 100644 (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;
 }