projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa695c9
)
llvm-cov: Try to appease a bot
author
Justin Bogner
<mail@justinbogner.com>
Thu, 19 Mar 2015 01:07:22 +0000
(
01:07
+0000)
committer
Justin Bogner
<mail@justinbogner.com>
Thu, 19 Mar 2015 01:07:22 +0000
(
01:07
+0000)
The clang-hexagon elf bot was complaining that "Option 'color'
registered more than once!":
http://lab.llvm.org:8011/builders/clang-hexagon-elf/builds/24425
I don't understand why this error is happening, and I don't see it on
any other bots or on my own machine, so I'm kind of grasping at
straws. Try using an unscoped enum and specifying a cl::init to see if
they help.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232698
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llvm-cov/CodeCoverage.cpp
patch
|
blob
|
history
diff --git
a/tools/llvm-cov/CodeCoverage.cpp
b/tools/llvm-cov/CodeCoverage.cpp
index 335fb0e59c17a9b487e657f4a3979ed0d6f129cb..c9bb7cefa064ef822736a05f26b104391aa23f9f 100644
(file)
--- a/
tools/llvm-cov/CodeCoverage.cpp
+++ b/
tools/llvm-cov/CodeCoverage.cpp
@@
-294,9
+294,9
@@
int CodeCoverageTool::run(Command Cmd, int argc, const char **argv) {
"greater than the given threshold"),
cl::cat(FilteringCategory));
- enum
class
Colors { Auto, Always, Never };
+ enum Colors { Auto, Always, Never };
cl::opt<Colors> Color(
- "color", cl::desc("Configure color output:"),
+ "color", cl::desc("Configure color output:"),
cl::init(Colors::Auto),
cl::values(clEnumValN(Colors::Auto, "auto",
"Enable color if stdout seems to support it"),
clEnumValN(Colors::Always, "always", "Enable color"),