summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2018-05-24 11:36:57 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2018-05-24 11:36:57 +0000
commit27126f5260760bec250de966f71cc8672092b357 (patch)
tree4bf1c14ebaf1abdb1f4a7037bae02889d5c81aae /llvm/lib/Support
parentb1f1b50da9aaee379070d3779f546e87c87f01c2 (diff)
downloadbcm5719-llvm-27126f5260760bec250de966f71cc8672092b357.tar.gz
bcm5719-llvm-27126f5260760bec250de966f71cc8672092b357.zip
[Support] Add color cl category.
This commit adds a color category so tools can document this option and enables it for dwarfdump and dsymuttil. rdar://problem/40498996 llvm-svn: 333176
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/WithColor.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Support/WithColor.cpp b/llvm/lib/Support/WithColor.cpp
index a663c69ac3e..d71aed9126b 100644
--- a/llvm/lib/Support/WithColor.cpp
+++ b/llvm/lib/Support/WithColor.cpp
@@ -13,9 +13,11 @@
using namespace llvm;
+cl::OptionCategory llvm::ColorCategory("Color Options");
+
static cl::opt<cl::boolOrDefault>
- UseColor("color",
- cl::desc("use colored syntax highlighting (default=autodetect)"),
+ UseColor("color", cl::cat(ColorCategory),
+ cl::desc("Use colors in output (default=autodetect)"),
cl::init(cl::BOU_UNSET));
bool WithColor::colorsEnabled(raw_ostream &OS) {
OpenPOWER on IntegriCloud