From 9cd407b11c63e3933ef5323fd768f65bcfdd5d01 Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Thu, 19 Mar 2015 02:00:54 +0000 Subject: [PATCH] llvm-cov: Continue trying to appease a bot 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/llvm-cov/CodeCoverage.cpp b/tools/llvm-cov/CodeCoverage.cpp index c9bb7cefa06..1582347aacc 100644 --- a/tools/llvm-cov/CodeCoverage.cpp +++ b/tools/llvm-cov/CodeCoverage.cpp @@ -228,6 +228,10 @@ std::unique_ptr 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 Color( "color", cl::desc("Configure color output:"), cl::init(Colors::Auto), cl::values(clEnumValN(Colors::Auto, "auto", -- 2.34.1