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)
commit9deb1d406f5b47004f60d6ae3f5bd80299d6efc3
treeeb2b141dd3256c49d5f82f7d43ec40e03b9520e6
parent61bff6192613038f721dccf52b0627b58354f9b0
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.

llvm-svn: 232704
llvm/tools/llvm-cov/CodeCoverage.cpp