Skip to content

Commit ac08c21

Browse files
[PGO][Offload] Fix profile function visibility
1 parent 0301bf9 commit ac08c21

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

compiler-rt/lib/profile/InstrProfilingFile.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1362,12 +1362,10 @@ COMPILER_RT_VISIBILITY int __llvm_profile_set_file_object(FILE *File,
13621362
return 0;
13631363
}
13641364

1365-
int __llvm_write_custom_profile(const char *Target,
1366-
const __llvm_profile_data *DataBegin,
1367-
const __llvm_profile_data *DataEnd,
1368-
const char *CountersBegin,
1369-
const char *CountersEnd, const char *NamesBegin,
1370-
const char *NamesEnd) {
1365+
COMPILER_RT_VISIBILITY int __llvm_write_custom_profile(
1366+
const char *Target, const __llvm_profile_data *DataBegin,
1367+
const __llvm_profile_data *DataEnd, const char *CountersBegin,
1368+
const char *CountersEnd, const char *NamesBegin, const char *NamesEnd) {
13711369
int ReturnValue = 0, FilenameLength, TargetLength;
13721370
char *FilenameBuf, *TargetFilename;
13731371
const char *Filename;

0 commit comments

Comments
 (0)