[all-commits] [llvm/llvm-project] 6f58e5: Work around non-existence of ElfW(type) macro on F...
Dimitry Andric via All-commits
all-commits at lists.llvm.org
Thu Aug 5 10:06:55 PDT 2021
Branch: refs/heads/release/13.x
Home: https://github.com/llvm/llvm-project
Commit: 6f58e54d655d0167f3b7d55e35c9806854307204
https://github.com/llvm/llvm-project/commit/6f58e54d655d0167f3b7d55e35c9806854307204
Author: Dimitry Andric <dimitry at andric.com>
Date: 2021-08-05 (Thu, 05 Aug 2021)
Changed paths:
M compiler-rt/lib/profile/InstrProfilingPlatformLinux.c
Log Message:
-----------
Work around non-existence of ElfW(type) macro on FreeBSD
Fixes PR51331. On FreeBSD, the elf headers don't (yet) provide the
ElfW(type) macro. However, there is a similar set of macros in the
<sys/elf-generic.h> header, of which `__ElfN(type)` exactly matches the
indended purpose.
Reviewed By: gulfem
Differential Revision: https://reviews.llvm.org/D107388
(cherry picked from commit 440d9712ebf6d5faa898daa68045ff0c10859db3)
More information about the All-commits
mailing list