From dd08f96ac74f3db11bd30ccaab7ee07d9590ed92 Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Thu, 19 Mar 2015 01:07:22 +0000 Subject: [PATCH] llvm-cov: Try to appease a bot 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/llvm-cov/CodeCoverage.cpp b/tools/llvm-cov/CodeCoverage.cpp index 335fb0e59c1..c9bb7cefa06 100644 --- 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 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"), -- 2.34.1