From 240da8cc13cdc408afa009edcce2eea6dfbbd1ed Mon Sep 17 00:00:00 2001 From: Arpad Borsos Date: Thu, 24 Aug 2023 16:48:08 +0200 Subject: [PATCH] Invoke llvm-cov show with `-show-branches` (#308) The Rust compiler will gain support for Branch Coverage in the future, so add the `-show-branches` flag to `llvm-cov` to take advantage of that support. --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 0566d078..e8e77458 100644 --- a/src/main.rs +++ b/src/main.rs @@ -897,6 +897,7 @@ impl Format { &format!("-show-instantiations={}", !cx.args.cov.hide_instantiations), "-show-line-counts-or-regions", "-show-expansions", + "-show-branches=count", &format!("-Xdemangler={}", cx.current_exe.display()), "-Xdemangler=llvm-cov", "-Xdemangler=demangle",