llvm-cov: Rename -color={always|never} to -use-color[=0]
authorJustin Bogner <mail@justinbogner.com>
Thu, 19 Mar 2015 04:45:16 +0000 (04:45 +0000)
committerJustin Bogner <mail@justinbogner.com>
Thu, 19 Mar 2015 04:45:16 +0000 (04:45 +0000)
commit12f0d207532ecd11161118928c056f432eb622a2
treebeb2a6b50050610e1be0ae83b731304349c1dc9f
parent2c275b1f80b9ed082738913e297d0609772e6941
llvm-cov: Rename -color={always|never} to -use-color[=0]

This is an ugly hack to fix the configure --enable-shared build. It
turns out that *every cl::opt in LLVM* shows up in *every tool* in
that configuration, which is hopelessly broken. This skirts around the
issue by not colliding with another option's name, for now.

I've also simplified the option implementation - the other "color"
option used cl::boolOrDefault and was much nicer than what I'd written
before.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232704 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-cov/CodeCoverage.cpp