summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseStmt.cpp
diff options
context:
space:
mode:
authorTyler Nowicki <tnowicki@apple.com>2014-06-13 17:57:25 +0000
committerTyler Nowicki <tnowicki@apple.com>2014-06-13 17:57:25 +0000
commite8b07ed080ec11a32de21ac1af5da2bbf3d62281 (patch)
tree045fab6b3187928cd890df382d63772808600c92 /clang/lib/Parse/ParseStmt.cpp
parente595e1ade02c7581a2e2ad5392f7714b7f342c05 (diff)
downloadbcm5719-llvm-e8b07ed080ec11a32de21ac1af5da2bbf3d62281.tar.gz
bcm5719-llvm-e8b07ed080ec11a32de21ac1af5da2bbf3d62281.zip
Adds a Pragma spelling for attributes to tablegen and makes use of it for loop
hint attributes. Includes tests for pragma printing and for attribute order which is incorrectly reversed by ParsedAttributes. Reviewed by Aaron Ballman llvm-svn: 210925
Diffstat (limited to 'clang/lib/Parse/ParseStmt.cpp')
-rw-r--r--clang/lib/Parse/ParseStmt.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Parse/ParseStmt.cpp b/clang/lib/Parse/ParseStmt.cpp
index 8ed5c984fd9..da26853d4c4 100644
--- a/clang/lib/Parse/ParseStmt.cpp
+++ b/clang/lib/Parse/ParseStmt.cpp
@@ -1765,9 +1765,8 @@ StmtResult Parser::ParsePragmaLoopHint(StmtVector &Stmts, bool OnlyStatement,
ArgsUnion ArgHints[] = {Hint.OptionLoc, Hint.ValueLoc,
ArgsUnion(Hint.ValueExpr)};
- // FIXME: Replace AS_Keyword with Pragma spelling AS_Pragma.
TempAttrs.addNew(Hint.LoopLoc->Ident, Hint.Range, nullptr,
- Hint.LoopLoc->Loc, ArgHints, 3, AttributeList::AS_Keyword);
+ Hint.LoopLoc->Loc, ArgHints, 3, AttributeList::AS_Pragma);
}
// Get the next statement.
OpenPOWER on IntegriCloud