Skip to content

Commit f1e4142

Browse files
authored
[compiler-rt][profile] remove unneeded freebsd hack. (#77209)
1 parent 004ec8e commit f1e4142

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

compiler-rt/lib/profile/InstrProfilingPlatformLinux.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,6 @@
2020
#include "InstrProfiling.h"
2121
#include "InstrProfilingInternal.h"
2222

23-
#if defined(__FreeBSD__) && !defined(ElfW)
24-
/*
25-
* FreeBSD's elf.h and link.h headers do not define the ElfW(type) macro yet.
26-
* If this is added to all supported FreeBSD versions in the future, this
27-
* compatibility macro can be removed.
28-
*/
29-
#define ElfW(type) __ElfN(type)
30-
#endif
31-
3223
#define PROF_DATA_START INSTR_PROF_SECT_START(INSTR_PROF_DATA_COMMON)
3324
#define PROF_DATA_STOP INSTR_PROF_SECT_STOP(INSTR_PROF_DATA_COMMON)
3425
#define PROF_NAME_START INSTR_PROF_SECT_START(INSTR_PROF_NAME_COMMON)

0 commit comments

Comments
 (0)