llvm-cov: Continue trying to appease a bot
authorJustin Bogner <mail@justinbogner.com>
Thu, 19 Mar 2015 02:00:54 +0000 (02:00 +0000)
committerJustin Bogner <mail@justinbogner.com>
Thu, 19 Mar 2015 02:00:54 +0000 (02:00 +0000)
This bot doesn't like me. I don't know why:

    http://lab.llvm.org:8011/builders/clang-hexagon-elf/builds/24425

Move the color option enum's definition out of the function that
creates the cl::opt.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232700 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-cov/CodeCoverage.cpp

index c9bb7cefa064ef822736a05f26b104391aa23f9f..1582347aacc269773cc964bfea8012f210f8a6cf 100644 (file)
@@ -228,6 +228,10 @@ std::unique_ptr<CoverageMapping> CodeCoverageTool::load() {
   return Coverage;
 }
 
+namespace {
+enum Colors { Auto, Always, Never };
+}
+
 int CodeCoverageTool::run(Command Cmd, int argc, const char **argv) {
   // Print a stack trace if we signal out.
   sys::PrintStackTraceOnErrorSignal();
@@ -294,7 +298,6 @@ int CodeCoverageTool::run(Command Cmd, int argc, const char **argv) {
                "greater than the given threshold"),
       cl::cat(FilteringCategory));
 
-  enum Colors { Auto, Always, Never };
   cl::opt<Colors> Color(
       "color", cl::desc("Configure color output:"), cl::init(Colors::Auto),
       cl::values(clEnumValN(Colors::Auto, "auto",