aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen/TableGen.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-10-20 01:21:53 +0000
committerAnders Carlsson <andersca@mac.com>2010-10-20 01:21:53 +0000
commit238777eb58010dd23d83c6225ed71bfc9bcb0331 (patch)
tree8d7cec164bd4a3efdf0dfa32e4295f09cb144ff0 /utils/TableGen/TableGen.cpp
parentb8e67fc92b0a508e3782b782baa98a6d56d5d7ea (diff)
downloadexternal_llvm-238777eb58010dd23d83c6225ed71bfc9bcb0331.zip
external_llvm-238777eb58010dd23d83c6225ed71bfc9bcb0331.tar.gz
external_llvm-238777eb58010dd23d83c6225ed71bfc9bcb0331.tar.bz2
Add a way to emit StringSwitch of clang attribute spellings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116899 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/TableGen.cpp')
-rw-r--r--utils/TableGen/TableGen.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/TableGen/TableGen.cpp b/utils/TableGen/TableGen.cpp
index fcf3f74..0bf6460 100644
--- a/utils/TableGen/TableGen.cpp
+++ b/utils/TableGen/TableGen.cpp
@@ -59,6 +59,7 @@ enum ActionType {
GenClangAttrList,
GenClangAttrPCHRead,
GenClangAttrPCHWrite,
+ GenClangAttrSpellingList,
GenClangDiagsDefs,
GenClangDiagGroups,
GenClangDeclNodes,
@@ -127,6 +128,8 @@ namespace {
"Generate clang PCH attribute reader"),
clEnumValN(GenClangAttrPCHWrite, "gen-clang-attr-pch-write",
"Generate clang PCH attribute writer"),
+ clEnumValN(GenClangAttrSpellingList, "gen-clang-attr-spelling-list",
+ "Generate a clang attribute spelling list"),
clEnumValN(GenClangDiagsDefs, "gen-clang-diags-defs",
"Generate Clang diagnostics definitions"),
clEnumValN(GenClangDiagGroups, "gen-clang-diag-groups",
@@ -274,6 +277,9 @@ int main(int argc, char **argv) {
case GenClangAttrPCHWrite:
ClangAttrPCHWriteEmitter(Records).run(Out.os());
break;
+ case GenClangAttrSpellingList:
+ ClangAttrSpellingListEmitter(Records).run(Out.os());
+ break;
case GenClangDiagsDefs:
ClangDiagsDefsEmitter(Records, ClangComponent).run(Out.os());
break;