[cfe-dev] Detecting if code coverage is enabled
Nickolas Pohilets via cfe-dev
cfe-dev at lists.llvm.org
Mon Oct 30 05:19:12 PDT 2017
I want to add a call to __llvm_profile_dump() to customize code coverage
Is there a way to detect if code coverage is enabled at compile time? I
wasn't able to find any __has_feature/__has_extension/macro for this in the
Currently, I solved this by adding custom preprocessor defines for the
configurations that are used for running code with code coverage, but IMO
it would be more reliable and convenient if there would be something
built-in into compiler itself.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev