[compiler-rt] e168513 - [ASAN] Fix darwin-interface test
Steven Wu via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 15 06:14:37 PDT 2022
Author: Steven Wu
Date: 2022-03-15T06:14:07-07:00
New Revision: e168513aed8fb07e096320a6a207d0fc721aaff5
URL: https://github.com/llvm/llvm-project/commit/e168513aed8fb07e096320a6a207d0fc721aaff5
DIFF: https://github.com/llvm/llvm-project/commit/e168513aed8fb07e096320a6a207d0fc721aaff5.diff
LOG: [ASAN] Fix darwin-interface test
Fix darwin interface test after D121464. asan_rtl_x86_64.S is not
available on Darwin.
Reviewed By: kstoimenov
Differential Revision: https://reviews.llvm.org/D121636
Added:
Modified:
compiler-rt/lib/asan/asan_interface.inc
Removed:
################################################################################
diff --git a/compiler-rt/lib/asan/asan_interface.inc b/compiler-rt/lib/asan/asan_interface.inc
index 9e18b79062342..e9e7accf1675e 100644
--- a/compiler-rt/lib/asan/asan_interface.inc
+++ b/compiler-rt/lib/asan/asan_interface.inc
@@ -181,7 +181,7 @@ INTERFACE_WEAK_FUNCTION(__asan_default_options)
INTERFACE_WEAK_FUNCTION(__asan_default_suppressions)
INTERFACE_WEAK_FUNCTION(__asan_on_error)
-#if defined(__x86_64__)
+#if defined(__x86_64__) && !defined(__APPLE__) && !defined(_WIN32)
# define ASAN_MEMORY_ACCESS_CALLBACK_ADD(s, reg, op) \
INTERFACE_FUNCTION(__asan_check_##op##_add_##s##_##reg)
@@ -212,5 +212,5 @@ ASAN_MEMORY_ACCESS_CALLBACKS_ADD(R13)
ASAN_MEMORY_ACCESS_CALLBACKS_ADD(R14)
ASAN_MEMORY_ACCESS_CALLBACKS_ADD(R15)
-#endif // defined(__x86_64__)
+#endif // defined(__x86_64__) && !defined(__APPLE__) && !defined(_WIN32)
More information about the llvm-commits
mailing list