[compiler-rt] e06a81d - [LSAN] Fix up LSAN weak symbols for Windows
Andrew Ng via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 1 02:19:10 PDT 2022
Author: Andrew Ng
Date: 2022-06-01T10:18:51+01:00
New Revision: e06a81d81029532350cf81b2cdafc236bbca9101
URL: https://github.com/llvm/llvm-project/commit/e06a81d81029532350cf81b2cdafc236bbca9101
DIFF: https://github.com/llvm/llvm-project/commit/e06a81d81029532350cf81b2cdafc236bbca9101.diff
LOG: [LSAN] Fix up LSAN weak symbols for Windows
Differential Revision: https://reviews.llvm.org/D126703
Added:
Modified:
compiler-rt/lib/lsan/lsan_common.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/lsan/lsan_common.cpp b/compiler-rt/lib/lsan/lsan_common.cpp
index 2e38b1ce8eec3..d6510d34fd689 100644
--- a/compiler-rt/lib/lsan/lsan_common.cpp
+++ b/compiler-rt/lib/lsan/lsan_common.cpp
@@ -1032,13 +1032,11 @@ SANITIZER_INTERFACE_WEAK_DEF(const char *, __lsan_default_options, void) {
}
#if !SANITIZER_SUPPORTS_WEAK_HOOKS
-SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE int
-__lsan_is_turned_off() {
+SANITIZER_INTERFACE_WEAK_DEF(int, __lsan_is_turned_off, void) {
return 0;
}
-SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE const char *
-__lsan_default_suppressions() {
+SANITIZER_INTERFACE_WEAK_DEF(const char *, __lsan_default_suppressions, void) {
return "";
}
#endif
More information about the llvm-commits
mailing list