[all-commits] [llvm/llvm-project] 440d97: Work around non-existence of ElfW(type) macro on F...

Dimitry Andric via All-commits all-commits at lists.llvm.org
Wed Aug 4 11:16:13 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 440d9712ebf6d5faa898daa68045ff0c10859db3
      https://github.com/llvm/llvm-project/commit/440d9712ebf6d5faa898daa68045ff0c10859db3
  Author: Dimitry Andric <dimitry at andric.com>
  Date:   2021-08-04 (Wed, 04 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




More information about the All-commits mailing list