diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-10 03:01:36 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-10 03:01:36 +0000 |
commit | 1df5109f475bcbc528eb1fb9fdb179dcadbb33a6 (patch) | |
tree | ef613876a2162db4f5bc717ca55e4f07646310c0 /include/clang | |
parent | fd6ad3cf9c8fc6904bd5f33212207aa69743fd45 (diff) |
Revert r78535, it is causing a number of failures to build projects.
--- Reverse-merging r78535 into '.':
D test/Sema/altivec-init.c
U include/clang/Basic/DiagnosticSemaKinds.td
U include/clang/AST/Expr.h
U include/clang/AST/StmtNodes.def
U include/clang/Parse/Parser.h
U include/clang/Parse/Action.h
U tools/clang-cc/clang-cc.cpp
U lib/Frontend/PrintParserCallbacks.cpp
U lib/CodeGen/CGExprScalar.cpp
U lib/Sema/SemaInit.cpp
U lib/Sema/Sema.h
U lib/Sema/SemaExpr.cpp
U lib/Sema/SemaTemplateInstantiateExpr.cpp
U lib/AST/StmtProfile.cpp
U lib/AST/Expr.cpp
U lib/AST/StmtPrinter.cpp
U lib/Parse/ParseExpr.cpp
U lib/Parse/ParseExprCXX.cpp
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78551 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r-- | include/clang/AST/Expr.h | 47 | ||||
-rw-r--r-- | include/clang/AST/StmtNodes.def | 1 | ||||
-rw-r--r-- | include/clang/Basic/DiagnosticSemaKinds.td | 3 | ||||
-rw-r--r-- | include/clang/Parse/Action.h | 13 | ||||
-rw-r--r-- | include/clang/Parse/Parser.h | 7 |
5 files changed, 5 insertions, 66 deletions
diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h index c2bb87d3c0..23fd420914 100644 --- a/include/clang/AST/Expr.h +++ b/include/clang/AST/Expr.h @@ -2382,53 +2382,6 @@ public: virtual child_iterator child_end(); }; - -class ParenListExpr : public Expr { - Stmt **Exprs; - unsigned NumExprs; - SourceLocation LParenLoc, RParenLoc; - -protected: - virtual void DoDestroy(ASTContext& C); - -public: - ParenListExpr(ASTContext& C, SourceLocation lparenloc, Expr **exprs, - unsigned numexprs, SourceLocation rparenloc); - - ~ParenListExpr() {} - - /// \brief Build an empty paren list. - //explicit ParenListExpr(EmptyShell Empty) : Expr(ParenListExprClass, Empty) { } - - unsigned getNumExprs() const { return NumExprs; } - - const Expr* getExpr(unsigned Init) const { - assert(Init < getNumExprs() && "Initializer access out of range!"); - return cast_or_null<Expr>(Exprs[Init]); - } - - Expr* getExpr(unsigned Init) { - assert(Init < getNumExprs() && "Initializer access out of range!"); - return cast_or_null<Expr>(Exprs[Init]); - } - - SourceLocation getLParenLoc() const { return LParenLoc; } - SourceLocation getRParenLoc() const { return RParenLoc; } - - virtual SourceRange getSourceRange() const { - return SourceRange(LParenLoc, RParenLoc); - } - static bool classof(const Stmt *T) { - return T->getStmtClass() == ParenListExprClass; - } - static bool classof(const ParenListExpr *) { return true; } - - // Iterators - virtual child_iterator child_begin(); - virtual child_iterator child_end(); -}; - - //===----------------------------------------------------------------------===// // Clang Extensions //===----------------------------------------------------------------------===// diff --git a/include/clang/AST/StmtNodes.def b/include/clang/AST/StmtNodes.def index 924ad3970f..914ea2798b 100644 --- a/include/clang/AST/StmtNodes.def +++ b/include/clang/AST/StmtNodes.def @@ -91,7 +91,6 @@ EXPR(ExtVectorElementExpr , Expr) EXPR(InitListExpr , Expr) EXPR(DesignatedInitExpr , Expr) EXPR(ImplicitValueInitExpr , Expr) -EXPR(ParenListExpr , Expr) EXPR(VAArgExpr , Expr) // GNU Extensions. diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index cc447385f5..61e492b6f6 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -2017,9 +2017,6 @@ def err_shufflevector_argument_too_large : Error< "index for __builtin_shufflevector must be less than the total number " "of vector elements">; -def err_vector_incorrect_num_initializers : Error< - "%select{too many|too few}0 elements in vector initialization (expected %1 elements, have %2)">; -def err_altivec_empty_initializer : Error<"expected initializer">; def err_stack_const_level : Error< "level argument for a stack address builtin must be constant">; diff --git a/include/clang/Parse/Action.h b/include/clang/Parse/Action.h index 777f75e5a6..b2be36eb05 100644 --- a/include/clang/Parse/Action.h +++ b/include/clang/Parse/Action.h @@ -825,12 +825,6 @@ public: return move(Val); // Default impl returns operand. } - virtual OwningExprResult ActOnParenListExpr(SourceLocation L, - SourceLocation R, - MultiExprArg Val) { - return ExprEmpty(); - } - // Postfix Expressions. virtual OwningExprResult ActOnPostfixUnaryOp(Scope *S, SourceLocation OpLoc, tok::TokenKind Kind, @@ -907,12 +901,11 @@ public: return ExprEmpty(); } - virtual OwningExprResult ActOnCastExpr(Scope *S, SourceLocation LParenLoc, - TypeTy *Ty, SourceLocation RParenLoc, - ExprArg Op) { + virtual OwningExprResult ActOnCastExpr(SourceLocation LParenLoc, TypeTy *Ty, + SourceLocation RParenLoc, ExprArg Op) { return ExprEmpty(); } - + virtual OwningExprResult ActOnBinOp(Scope *S, SourceLocation TokLoc, tok::TokenKind Kind, ExprArg LHS, ExprArg RHS) { diff --git a/include/clang/Parse/Parser.h b/include/clang/Parse/Parser.h index 9e785a65ff..f2faa1c758 100644 --- a/include/clang/Parse/Parser.h +++ b/include/clang/Parse/Parser.h @@ -705,11 +705,9 @@ private: unsigned MinPrec); OwningExprResult ParseCastExpression(bool isUnaryExpression, bool isAddressOfOperand, - bool &NotCastExpr, - bool parseParenAsExprList); + bool &NotCastExpr); OwningExprResult ParseCastExpression(bool isUnaryExpression, - bool isAddressOfOperand = false, - bool parseParenAsExprList = false); + bool isAddressOfOperand = false); OwningExprResult ParsePostfixExpressionSuffix(OwningExprResult LHS); OwningExprResult ParseSizeofAlignofExpression(); OwningExprResult ParseBuiltinPrimaryExpression(); @@ -735,7 +733,6 @@ private: }; OwningExprResult ParseParenExpression(ParenParseOption &ExprType, bool stopIfCastExpr, - bool parseAsExprList, TypeTy *&CastTy, SourceLocation &RParenLoc); |