diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2015-11-11 20:35:42 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2015-11-11 20:35:42 +0000 |
commit | d932679c71c0a650c0afa109d4fdcbbe0e48877b (patch) | |
tree | f27f8c867abc80112b1fce550463f1437d9d1d15 /llvm/utils/TableGen/TableGen.cpp | |
parent | e19fca4525919a6eb0d014a5678585e2dc96a61d (diff) | |
download | llvm-d932679c71c0a650c0afa109d4fdcbbe0e48877b.zip llvm-d932679c71c0a650c0afa109d4fdcbbe0e48877b.tar.gz llvm-d932679c71c0a650c0afa109d4fdcbbe0e48877b.tar.bz2 |
Move the enum attributes defined in Attributes.h to a table-gen file.
This is a step towards consolidating some of the information regarding
attributes in a single place.
This patch moves the enum attributes in Attributes.h to the table-gen
file. Additionally, it adds definitions of target independent string
attributes that will be used in follow-up commits by the inliner to
check attribute compatibility.
rdar://problem/19836465
llvm-svn: 252796
Diffstat (limited to 'llvm/utils/TableGen/TableGen.cpp')
-rw-r--r-- | llvm/utils/TableGen/TableGen.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/TableGen.cpp b/llvm/utils/TableGen/TableGen.cpp index 02fe4dc..c16a558 100644 --- a/llvm/utils/TableGen/TableGen.cpp +++ b/llvm/utils/TableGen/TableGen.cpp @@ -41,7 +41,8 @@ enum ActionType { PrintEnums, PrintSets, GenOptParserDefs, - GenCTags + GenCTags, + GenAttributes }; namespace { @@ -85,6 +86,8 @@ namespace { "Generate option definitions"), clEnumValN(GenCTags, "gen-ctags", "Generate ctags-compatible index"), + clEnumValN(GenAttributes, "gen-attrs", + "Generate attributes"), clEnumValEnd)); cl::opt<std::string> @@ -165,6 +168,9 @@ bool LLVMTableGenMain(raw_ostream &OS, RecordKeeper &Records) { case GenCTags: EmitCTags(Records, OS); break; + case GenAttributes: + EmitAttributes(Records, OS); + break; } return false; |