[compiler-rt] [compiler-rt][profile] remove unneeded freebsd hack. (PR #77209)
David CARLIER via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 6 12:50:15 PST 2024
https://github.com/devnexen created https://github.com/llvm/llvm-project/pull/77209
None
>From 3db11d08436f3b592c4a73c6590f8b7a7aa99d80 Mon Sep 17 00:00:00 2001
From: David Carlier <devnexen at gmail.com>
Date: Sat, 6 Jan 2024 20:49:22 +0000
Subject: [PATCH] [compiler-rt][profile] remove unneeded freebsd hack.
---
compiler-rt/lib/profile/InstrProfilingPlatformLinux.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/compiler-rt/lib/profile/InstrProfilingPlatformLinux.c b/compiler-rt/lib/profile/InstrProfilingPlatformLinux.c
index d0c42462e5e319..19266ab6c6fb8a 100644
--- a/compiler-rt/lib/profile/InstrProfilingPlatformLinux.c
+++ b/compiler-rt/lib/profile/InstrProfilingPlatformLinux.c
@@ -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)
More information about the llvm-commits
mailing list