summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-05-02 23:15:45 +0000
committerDouglas Gregor <dgregor@apple.com>2013-05-02 23:15:45 +0000
commit33ebfe36e59dbc75a5f7ae28d59381ad478f460b (patch)
treea196bbabea5e86b50f46027143a9516c06202ce5 /clang/lib/Parse/ParseDecl.cpp
parent076b7fc6084342c7c4c2e05b1775e001216a914c (diff)
downloadbcm5719-llvm-33ebfe36e59dbc75a5f7ae28d59381ad478f460b.tar.gz
bcm5719-llvm-33ebfe36e59dbc75a5f7ae28d59381ad478f460b.zip
Revert r180970; it's causing breakage.
llvm-svn: 180972
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r--clang/lib/Parse/ParseDecl.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp
index a4cec8c2575..2f0c1a3b8da 100644
--- a/clang/lib/Parse/ParseDecl.cpp
+++ b/clang/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<bool>(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;
OpenPOWER on IntegriCloud