[PATCH] D107388: Work around non-existence of ElfW(type) macro on FreeBSD

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 3 13:17:21 PDT 2021


MaskRay added inline comments.


================
Comment at: compiler-rt/lib/profile/InstrProfilingPlatformLinux.c:21
+#if defined(__FreeBSD__) && !defined(ElfW)
+#define ElfW(type) __ElfN(type)
+#endif
----------------
If FreeBSD will have the macro, add a comment so that this chunk can be removed in the future.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107388/new/

https://reviews.llvm.org/D107388



More information about the llvm-commits mailing list