ports/devel/llvm15/files/patch-compiler-rt_lib_profile_InstrProfilingPlatformLinux.c
Brooks Davis f3d912a7b9 devel/llvm15: boostrap from devel/llvm14
Make an as-is copy of llvm14 as devel/llvm15. It will be updated to
LLVM 15 and connected to the build in the next commit.  This makes it
easier to see what has changed.
2022-08-11 00:01:09 +01:00

13 lines
480 B
C

--- compiler-rt/lib/profile/InstrProfilingPlatformLinux.c.orig
+++ compiler-rt/lib/profile/InstrProfilingPlatformLinux.c
@@ -17,6 +17,10 @@
#include "InstrProfiling.h"
#include "InstrProfilingInternal.h"
+#if !defined(ElfW)
+#define ElfW(type) Elf_##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)