[llvm] 44a64af - [llvm][ubsan] Inclusive language: replace use of blacklist HandleLLVMOptions.cmake
Zarko Todorovski via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 15 08:22:08 PST 2021
Author: Zarko Todorovski
Date: 2021-11-15T16:22:03Z
New Revision: 44a64afd43943ed6f47c37f61a6cd2e99c7287f3
URL: https://github.com/llvm/llvm-project/commit/44a64afd43943ed6f47c37f61a6cd2e99c7287f3
DIFF: https://github.com/llvm/llvm-project/commit/44a64afd43943ed6f47c37f61a6cd2e99c7287f3.diff
LOG: [llvm][ubsan] Inclusive language: replace use of blacklist HandleLLVMOptions.cmake
This patch changes it to ignorelist and contains a filename change for the
.txt file that's called.
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D113689
Added:
llvm/utils/sanitizers/ubsan_ignorelist.txt
Modified:
llvm/cmake/modules/HandleLLVMOptions.cmake
Removed:
llvm/utils/sanitizers/ubsan_blacklist.txt
################################################################################
diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake
index 54eebb8d6b45..2c8cc10f861a 100644
--- a/llvm/cmake/modules/HandleLLVMOptions.cmake
+++ b/llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -870,9 +870,9 @@ if(LLVM_USE_SANITIZER)
append("-fsanitize=fuzzer-no-link" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
endif()
if (LLVM_USE_SANITIZER MATCHES ".*Undefined.*")
- set(BLACKLIST_FILE "${CMAKE_SOURCE_DIR}/utils/sanitizers/ubsan_blacklist.txt")
- if (EXISTS "${BLACKLIST_FILE}")
- append("-fsanitize-blacklist=${BLACKLIST_FILE}"
+ set(IGNORELIST_FILE "${CMAKE_SOURCE_DIR}/utils/sanitizers/ubsan_ignorelist.txt")
+ if (EXISTS "${IGNORELIST_FILE}")
+ append("-fsanitize-ignorelist=${IGNORELIST_FILE}"
CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
endif()
endif()
diff --git a/llvm/utils/sanitizers/ubsan_blacklist.txt b/llvm/utils/sanitizers/ubsan_ignorelist.txt
similarity index 91%
rename from llvm/utils/sanitizers/ubsan_blacklist.txt
rename to llvm/utils/sanitizers/ubsan_ignorelist.txt
index 144ab1f4685d..f8fbb77ead31 100644
--- a/llvm/utils/sanitizers/ubsan_blacklist.txt
+++ b/llvm/utils/sanitizers/ubsan_ignorelist.txt
@@ -1,4 +1,4 @@
-# This blacklist should be applied when LLVM is built
+# This ignorelist should be applied when LLVM is built
# with -fsanitize=undefined instrumentation. It exists
# because libstdc++ has some undefined behavior issues
# in some of the headers, in particular, stl_tree.h.
More information about the llvm-commits
mailing list