[clang] [Clang][InstrProf] Allow mix-up of absolute path with relative path on command line when using -fprofile-list= (PR #67519)
Shivam Gupta via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 18 01:36:08 PST 2023
================
@@ -4,7 +4,8 @@
// RUN: %clang_cc1 -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -fprofile-list=%t-func.list -emit-llvm %s -o - | FileCheck %s --check-prefix=FUNC
// RUN: echo "src:%s" | sed -e 's/\\/\\\\/g' > %t-file.list
-// RUN: %clang_cc1 -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -fprofile-list=%t-file.list -emit-llvm %s -o - | FileCheck %s --check-prefix=FILE
+// RUN: cd %S
+// RUN: %clang_cc1 -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -fprofile-list=%t-file.list -emit-llvm profile-filter.c -o - | FileCheck %s --check-prefix=FILE
----------------
xgupta wrote:
Yes, I misunderstood the concept wrt ninja build and fun.list. Only modification is required in fun.list to supply full path, not required to update ProfileList.cpp
Apologies for taking so much time to realize this simple concept.
https://github.com/llvm/llvm-project/pull/67519
More information about the cfe-commits
mailing list