[all-commits] [llvm/llvm-project] c28ab6: [NFCI] Move SANITIZER_WEAK_IMPORT to sanitizer_com...

Chris Apple via All-commits all-commits at lists.llvm.org
Tue Jan 23 14:43:11 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c28ab6274322da693ea41a49e301c15b551c974a
      https://github.com/llvm/llvm-project/commit/c28ab6274322da693ea41a49e301c15b551c974a
  Author: Chris Apple <14171107+cjappl at users.noreply.github.com>
  Date:   2024-01-23 (Tue, 23 Jan 2024)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
    M compiler-rt/lib/tsan/rtl/tsan_dispatch_defs.h

  Log Message:
  -----------
  [NFCI] Move SANITIZER_WEAK_IMPORT to sanitizer_common (#79208)

SANITIZER_WEAK_IMPORT is useful for any call that needs to be
conditionally linked in. This is currently used for the
tsan_dispatch_interceptors, but can be used for other calls introduced
in newer versions of MacOS. (such as `aligned_alloc` in this PR
https://github.com/llvm/llvm-project/pull/79198).

This PR moves the definition to a higher level so it can be used in
other sanitizers.




More information about the All-commits mailing list