[llvm] [llvm-cov] Add --debug-info flag to llvm-cov to lookup debug info file. (PR #66798)

Ellis Hoag via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 19 14:10:45 PDT 2023


================
@@ -48,7 +48,7 @@
 
 // RUN: diff <(llvm-profdata show --all-functions --counts %t.normal.profdata) <(llvm-profdata show --all-functions --counts %t.profdata)
 
-// RUN: llvm-cov export --format=lcov --instr-profile=%t.profdata %t | FileCheck %s -check-prefix=NAME
+// RUN: llvm-cov export --format=lcov --instr-profile=%t.profdata %t --debug-info=%t | FileCheck %s -check-prefix=NAME
----------------
ellishg wrote:

If the binary already has debug info, we could use for correlation instead of passing the redundant `--debug-info=%t`, right? Of course this wouldn't work for MachO or if the binary is stripped of debug info. Is it possible (or at least easy to only require `--debug-info` if the provided binary doesn't already have it?

https://github.com/llvm/llvm-project/pull/66798


More information about the llvm-commits mailing list