Skip to content

Commit

Permalink
[compiler-rt][profile] remove unneeded freebsd hack. (llvm#77209)
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen authored and justinfargnoli committed Jan 28, 2024
1 parent b2cec66 commit 5473312
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 5473312

Please sign in to comment.