[PATCH] D96000: Don't emit coverage mapping for excluded functions
Vedant Kumar via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 4 11:01:25 PST 2021
vsk added inline comments.
================
Comment at: clang/test/CodeGen/profile-filter.c:27
+// EXCLUDE: @__covrec_{{[0-9A-F]+}}u = linkonce_odr hidden constant <{ i64, i32, i64, i64, [{{.*}} x i8] }> <{ {{.*}} }>, section "__llvm_covfun"
+// EXCLUDE-NOT: @__covrec_{{[0-9A-F]+}}u = linkonce_odr hidden constant <{ i64, i32, i64, i64, [{{.*}} x i8] }> <{ {{.*}} }>, section "__llvm_covfun"
+
----------------
This is somewhat difficult to interpret. Would you be open to specifying -dump-coverage-mapping (e.g. https://godbolt.org/z/5PvvEv), in a separate cc1 invocation if needed, and checking that instead?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D96000/new/
https://reviews.llvm.org/D96000
More information about the cfe-commits
mailing list