summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2013-09-11 19:47:58 +0000
committerAaron Ballman <aaron@aaronballman.com>2013-09-11 19:47:58 +0000
commit682ee42550a8e0a24693a075bd3431818e88ce13 (patch)
treedcc9c7f42168625d8618dca6a0184ed90a6a0b14 /clang/lib/AST
parent5b2f4b054054d4bd13bc0b39803ccd3e5e0618ec (diff)
downloadbcm5719-llvm-682ee42550a8e0a24693a075bd3431818e88ce13.tar.gz
bcm5719-llvm-682ee42550a8e0a24693a075bd3431818e88ce13.zip
Tablegen now generates a StringSwitch for attributes containing enumeration arguments to map strings to the proper enumeration value. This makes error checking more consistent and reduces the amount of hand-written code required.
llvm-svn: 190545
Diffstat (limited to 'clang/lib/AST')
-rw-r--r--clang/lib/AST/AttrImpl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/AST/AttrImpl.cpp b/clang/lib/AST/AttrImpl.cpp
index daf65e56bdc..7af3c8b1626 100644
--- a/clang/lib/AST/AttrImpl.cpp
+++ b/clang/lib/AST/AttrImpl.cpp
@@ -15,6 +15,7 @@
#include "clang/AST/ASTContext.h"
#include "clang/AST/Expr.h"
#include "clang/AST/Type.h"
+#include "llvm/ADT/StringSwitch.h"
using namespace clang;
Attr::~Attr() { }
OpenPOWER on IntegriCloud