[compiler-rt] [compiler-rt] Add baremetal version of profile library. (PR #167998)
Peter Smith via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 5 01:25:41 PST 2025
================
@@ -131,9 +130,11 @@ COMPILER_RT_VISIBILITY
int __llvm_profile_merge_from_buffer(const char *ProfileData,
uint64_t ProfileSize) {
if (__llvm_profile_get_version() & VARIANT_MASK_TEMPORAL_PROF) {
+#ifndef COMPILER_RT_PROFILE_BAREMETAL
----------------
smithp35 wrote:
Could this be done in InstrProfilingPort.h ? By making the definitions of `PROF_ERR`, `PROF_WARN` and `PROF_NOTE` do nothing?
Probably more code, but maybe more maintainable.
https://github.com/llvm/llvm-project/pull/167998
More information about the llvm-commits
mailing list