kcc added a comment. We use function attributes in similar situations for asan/tsan/msan. Similar, but not equivalent, so I don't know if we must follow the same pattern here. The difference here is that we should keep the ability to turn optimization on and off from command line, regardless of what are the coverage instrumentation flags.
IIRC, the *function* metadata is not that easily stripped (as opposed to metadata attached to instructions). https://reviews.llvm.org/D43423 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits