diff options
author | Daniel Sanders <daniel_l_sanders@apple.com> | 2017-03-27 13:15:13 +0000 |
---|---|---|
committer | Daniel Sanders <daniel_l_sanders@apple.com> | 2017-03-27 13:15:13 +0000 |
commit | 0848b23d5350ee5a28ffcee6bf51b440133cfa98 (patch) | |
tree | 4fb89e3fc2caf92185d047ffbdb50fff94f3e976 /llvm/utils/TableGen/AsmMatcherEmitter.cpp | |
parent | d2a97e0b7e2918532440bd6b3d32e68138a4dbf8 (diff) | |
download | bcm5719-llvm-0848b23d5350ee5a28ffcee6bf51b440133cfa98.tar.gz bcm5719-llvm-0848b23d5350ee5a28ffcee6bf51b440133cfa98.zip |
[tablegen] Use categories on options that only matter to one emitter.
Summary:
The categories are emitted in a strange order in this patch due to a bug in the
CommandLine library.
Reviewers: ab
Reviewed By: ab
Subscribers: ab, llvm-commits
Differential Revision: https://reviews.llvm.org/D30995
llvm-svn: 298843
Diffstat (limited to 'llvm/utils/TableGen/AsmMatcherEmitter.cpp')
-rw-r--r-- | llvm/utils/TableGen/AsmMatcherEmitter.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/AsmMatcherEmitter.cpp b/llvm/utils/TableGen/AsmMatcherEmitter.cpp index 73dddc4846c..5953bdc7301 100644 --- a/llvm/utils/TableGen/AsmMatcherEmitter.cpp +++ b/llvm/utils/TableGen/AsmMatcherEmitter.cpp @@ -123,9 +123,12 @@ using namespace llvm; #define DEBUG_TYPE "asm-matcher-emitter" +cl::OptionCategory AsmMatcherEmitterCat("Options for -gen-asm-matcher"); + static cl::opt<std::string> -MatchPrefix("match-prefix", cl::init(""), - cl::desc("Only match instructions with the given prefix")); + MatchPrefix("match-prefix", cl::init(""), + cl::desc("Only match instructions with the given prefix"), + cl::cat(AsmMatcherEmitterCat)); namespace { class AsmMatcherInfo; |