Skip to content

Commit

Permalink
[compiler-rt][profile] remove unneeded freebsd hack. (#77209)
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Jan 10, 2024
1 parent 004ec8e commit f1e4142
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions compiler-rt/lib/profile/InstrProfilingPlatformLinux.c
Expand Up @@ -20,15 +20,6 @@
#include "InstrProfiling.h"
#include "InstrProfilingInternal.h"

#if defined(__FreeBSD__) && !defined(ElfW)
/*
* FreeBSD's elf.h and link.h headers do not define the ElfW(type) macro yet.
* If this is added to all supported FreeBSD versions in the future, this
* compatibility macro can be removed.
*/
#define ElfW(type) __ElfN(type)
#endif

#define PROF_DATA_START INSTR_PROF_SECT_START(INSTR_PROF_DATA_COMMON)
#define PROF_DATA_STOP INSTR_PROF_SECT_STOP(INSTR_PROF_DATA_COMMON)
#define PROF_NAME_START INSTR_PROF_SECT_START(INSTR_PROF_NAME_COMMON)
Expand Down

0 comments on commit f1e4142

Please sign in to comment.