[InstrProfiling] Use llvm.compiler.used if applicable for Mach-O
Similar to D97585. D25456 used `S_ATTR_LIVE_SUPPORT` to ensure the data variable will be retained or discarded as a unit with the counter variable, so llvm.compiler.used is sufficient. It allows ld to dead strip unneeded profc and profd variables. Reviewed By: vsk Differential Revision: https://reviews.llvm.org/D105445
Loading
Please sign in to comment