Add support for -cov=ctfe

Incl. making sure `-cov=N ... -cov[=ctfe]` doesn't reset the required
percentage to 0.

Use a dummy *bool* option for a better help output (displaying `--cov`,
not `--cov=<value>`).
This commit is contained in:
Martin Kinkelin 2020-09-23 20:28:06 +02:00
parent 9677bf4068
commit 47b25ca6ab
3 changed files with 38 additions and 34 deletions

View file

@ -429,8 +429,6 @@ void parseCommandLine(Strings &sourceFiles) {
global.params.output_mlir = opts::output_mlir ? OUTPUTFLAGset : OUTPUTFLAGno;
global.params.output_s = opts::output_s ? OUTPUTFLAGset : OUTPUTFLAGno;
global.params.cov = (global.params.covPercent <= 100);
templateLinkage = opts::linkonceTemplates ? LLGlobalValue::LinkOnceODRLinkage
: LLGlobalValue::WeakODRLinkage;