[PGO][Offload] Don't define GPU entrypoint on Darwin (#132966)

This PR partially reverts 83e180c and instead opts to not define the GPU entry
point on Darwin platforms. Marking `__llvm_write_custom_profile` as used
was causing issues on embedded platforms.
This commit is contained in:
Ethan Luis McDonough
2025-03-25 23:28:01 -05:00
committed by GitHub
parent ece72e2731
commit 80d5185bd4
2 changed files with 7 additions and 9 deletions

View File

@@ -1273,6 +1273,7 @@ COMPILER_RT_VISIBILITY int __llvm_profile_set_file_object(FILE *File,
return 0;
}
#ifndef __APPLE__
int __llvm_write_custom_profile(const char *Target,
const __llvm_profile_data *DataBegin,
const __llvm_profile_data *DataEnd,
@@ -1381,5 +1382,6 @@ int __llvm_write_custom_profile(const char *Target,
return ReturnValue;
}
#endif
#endif