From fa5f03052bc39d9c8f2fa8b4002597a8219760a4 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 2 May 2013 23:15:45 +0000 Subject: Revert r180970; it's causing breakage. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180972 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Parse/CMakeLists.txt | 1 - lib/Parse/ParseDecl.cpp | 10 ---------- 2 files changed, 11 deletions(-) (limited to 'lib/Parse') diff --git a/lib/Parse/CMakeLists.txt b/lib/Parse/CMakeLists.txt index 01c0694d03..939998ecb1 100644 --- a/lib/Parse/CMakeLists.txt +++ b/lib/Parse/CMakeLists.txt @@ -17,7 +17,6 @@ add_clang_library(clangParse add_dependencies(clangParse ClangAttrClasses - ClangAttrExprArgs ClangAttrLateParsed ClangAttrList ClangAttrParsedAttrList diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp index a4cec8c257..2f0c1a3b8d 100644 --- a/lib/Parse/ParseDecl.cpp +++ b/lib/Parse/ParseDecl.cpp @@ -178,12 +178,6 @@ void Parser::ParseGNUAttributes(ParsedAttributes &attrs, } } -/// \brief Determine whether the given attribute has all expression arguments. -static bool attributeHasExprArgs(const IdentifierInfo &II) { - return llvm::StringSwitch(II.getName()) -#include "clang/Parse/AttrExprArgs.inc" - .Default(false); -} /// Parse the arguments to a parameterized GNU attribute or /// a C++11 attribute in "gnu" namespace. @@ -253,10 +247,6 @@ void Parser::ParseGNUAttributeArgs(IdentifierInfo *AttrName, TypeParsed = true; break; } - // If the attribute has all expression arguments, and not a "parameter", - // break out to handle it below. - if (attributeHasExprArgs(*AttrName)) - break; ParmName = Tok.getIdentifierInfo(); ParmLoc = ConsumeToken(); break; -- cgit v1.2.3-18-g5258