From 88f64e6aebd9ce824f6dfddc2979321e57a80dda Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Fri, 13 Dec 2013 21:19:30 +0000 Subject: [PATCH] Remove an unused parameter and include after r197273 llvm-svn: 197274 --- clang/include/clang/Sema/Sema.h | 4 ++-- clang/lib/AST/StmtPrinter.cpp | 1 - clang/lib/Parse/ParseExprCXX.cpp | 3 +-- clang/lib/Sema/SemaExprCXX.cpp | 4 ++-- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h index fbb0cd06c270..6eefdf0e76a3 100644 --- a/clang/include/clang/Sema/Sema.h +++ b/clang/include/clang/Sema/Sema.h @@ -4219,8 +4219,8 @@ public: SourceLocation RParen); /// \brief Parsed one of the type trait support pseudo-functions. - ExprResult ActOnTypeTrait(TypeTrait Kind, unsigned Arity, - SourceLocation KWLoc, ArrayRef Args, + ExprResult ActOnTypeTrait(TypeTrait Kind, SourceLocation KWLoc, + ArrayRef Args, SourceLocation RParenLoc); ExprResult BuildTypeTrait(TypeTrait Kind, SourceLocation KWLoc, ArrayRef Args, diff --git a/clang/lib/AST/StmtPrinter.cpp b/clang/lib/AST/StmtPrinter.cpp index 68f78f152faa..f38fd5d585ad 100644 --- a/clang/lib/AST/StmtPrinter.cpp +++ b/clang/lib/AST/StmtPrinter.cpp @@ -1695,7 +1695,6 @@ static const char *getTypeTraitName(TypeTrait TT) { switch (TT) { #define TYPE_TRAIT_2(Spelling, Name, Key) \ case clang::BTT_##Name: return #Spelling; -#include "clang/Basic/TokenKinds.def" #define TYPE_TRAIT_N(Spelling, Name, Key) \ case clang::TT_##Name: return #Spelling; #include "clang/Basic/TokenKinds.def" diff --git a/clang/lib/Parse/ParseExprCXX.cpp b/clang/lib/Parse/ParseExprCXX.cpp index 9c2cfcc490ea..4aba5f950ae8 100644 --- a/clang/lib/Parse/ParseExprCXX.cpp +++ b/clang/lib/Parse/ParseExprCXX.cpp @@ -2800,8 +2800,7 @@ ExprResult Parser::ParseTypeTrait() { return Actions.ActOnUnaryTypeTrait(UnaryTypeTraitFromTokKind(Kind), Loc, Args[0], EndLoc); - return Actions.ActOnTypeTrait(TypeTraitFromTokKind(Kind), Arity, Loc, Args, - EndLoc); + return Actions.ActOnTypeTrait(TypeTraitFromTokKind(Kind), Loc, Args, EndLoc); } /// ParseArrayTypeTrait - Parse the built-in array type-trait diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp index ef89490c43bb..a0c123fdaacc 100644 --- a/clang/lib/Sema/SemaExprCXX.cpp +++ b/clang/lib/Sema/SemaExprCXX.cpp @@ -3734,8 +3734,8 @@ ExprResult Sema::BuildTypeTrait(TypeTrait Kind, SourceLocation KWLoc, RParenLoc, Result); } -ExprResult Sema::ActOnTypeTrait(TypeTrait Kind, unsigned Arity, - SourceLocation KWLoc, ArrayRef Args, +ExprResult Sema::ActOnTypeTrait(TypeTrait Kind, SourceLocation KWLoc, + ArrayRef Args, SourceLocation RParenLoc) { SmallVector ConvertedArgs; ConvertedArgs.reserve(Args.size());