[llvm] 679d9ea - [NFC][sanitizer] Rename sanitizer_common_range -> sanitizer_range
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 12 15:36:43 PDT 2023
Author: Vitaly Buka
Date: 2023-06-12T15:36:27-07:00
New Revision: 679d9ea14d52d1d23db9936fe19d909ed1ca2c03
URL: https://github.com/llvm/llvm-project/commit/679d9ea14d52d1d23db9936fe19d909ed1ca2c03
DIFF: https://github.com/llvm/llvm-project/commit/679d9ea14d52d1d23db9936fe19d909ed1ca2c03.diff
LOG: [NFC][sanitizer] Rename sanitizer_common_range -> sanitizer_range
Added:
compiler-rt/lib/sanitizer_common/sanitizer_range.cpp
compiler-rt/lib/sanitizer_common/sanitizer_range.h
compiler-rt/lib/sanitizer_common/tests/sanitizer_range_test.cpp
Modified:
compiler-rt/lib/lsan/lsan_common.h
compiler-rt/lib/sanitizer_common/CMakeLists.txt
compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt
llvm/utils/gn/secondary/compiler-rt/lib/sanitizer_common/BUILD.gn
Removed:
compiler-rt/lib/sanitizer_common/sanitizer_common_range.cpp
compiler-rt/lib/sanitizer_common/sanitizer_common_range.h
compiler-rt/lib/sanitizer_common/tests/sanitizer_common_range_test.cpp
################################################################################
diff --git a/compiler-rt/lib/lsan/lsan_common.h b/compiler-rt/lib/lsan/lsan_common.h
index 93204462f6a04..d3e768363e93b 100644
--- a/compiler-rt/lib/lsan/lsan_common.h
+++ b/compiler-rt/lib/lsan/lsan_common.h
@@ -16,9 +16,9 @@
#include "sanitizer_common/sanitizer_allocator.h"
#include "sanitizer_common/sanitizer_common.h"
-#include "sanitizer_common/sanitizer_common_range.h"
#include "sanitizer_common/sanitizer_internal_defs.h"
#include "sanitizer_common/sanitizer_platform.h"
+#include "sanitizer_common/sanitizer_range.h"
#include "sanitizer_common/sanitizer_stackdepot.h"
#include "sanitizer_common/sanitizer_stoptheworld.h"
#include "sanitizer_common/sanitizer_symbolizer.h"
diff --git a/compiler-rt/lib/sanitizer_common/CMakeLists.txt b/compiler-rt/lib/sanitizer_common/CMakeLists.txt
index 9002106b8b07a..59ab17317f93e 100644
--- a/compiler-rt/lib/sanitizer_common/CMakeLists.txt
+++ b/compiler-rt/lib/sanitizer_common/CMakeLists.txt
@@ -3,7 +3,6 @@
set(SANITIZER_SOURCES_NOTERMINATION
sanitizer_allocator.cpp
- sanitizer_common_range.cpp
sanitizer_common.cpp
sanitizer_deadlock_detector1.cpp
sanitizer_deadlock_detector2.cpp
@@ -32,6 +31,7 @@ set(SANITIZER_SOURCES_NOTERMINATION
sanitizer_procmaps_linux.cpp
sanitizer_procmaps_mac.cpp
sanitizer_procmaps_solaris.cpp
+ sanitizer_range.cpp
sanitizer_solaris.cpp
sanitizer_stoptheworld_fuchsia.cpp
sanitizer_stoptheworld_mac.cpp
@@ -174,6 +174,7 @@ set(SANITIZER_IMPL_HEADERS
sanitizer_procmaps.h
sanitizer_ptrauth.h
sanitizer_quarantine.h
+ sanitizer_range.h
sanitizer_redefine_builtins.h
sanitizer_report_decorator.h
sanitizer_ring_buffer.h
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_range.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_range.cpp
similarity index 93%
rename from compiler-rt/lib/sanitizer_common/sanitizer_common_range.cpp
rename to compiler-rt/lib/sanitizer_common/sanitizer_range.cpp
index f500928eace96..68d79f18ac8d3 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_common_range.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_range.cpp
@@ -1,4 +1,4 @@
-//===-- sanitizer_common_range.cpp ----------------------------------------===//
+//===-- sanitizer_range.cpp -----------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
-#include "sanitizer_common_range.h"
+#include "sanitizer_range.h"
#include "sanitizer_common/sanitizer_array_ref.h"
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_range.h b/compiler-rt/lib/sanitizer_common/sanitizer_range.h
similarity index 85%
rename from compiler-rt/lib/sanitizer_common/sanitizer_common_range.h
rename to compiler-rt/lib/sanitizer_common/sanitizer_range.h
index e43c6d1c85712..7c593e171ba21 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_common_range.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_range.h
@@ -1,4 +1,4 @@
-//===-- sanitizer_common_range.h --------------------------------*- C++ -*-===//
+//===-- sanitizer_range.h ---------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -10,8 +10,8 @@
//
//===----------------------------------------------------------------------===//
-#ifndef SANITIZER_COMMON_REGION_H
-#define SANITIZER_COMMON_REGION_H
+#ifndef SANITIZER_RANGE_H
+#define SANITIZER_RANGE_H
#include "sanitizer_common.h"
#include "sanitizer_common/sanitizer_array_ref.h"
@@ -37,4 +37,4 @@ void Intersect(ArrayRef<Range> a, ArrayRef<Range> b,
} // namespace __sanitizer
-#endif // SANITIZER_COMMON_REGION_H
+#endif // SANITIZER_RANGE_H
diff --git a/compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt b/compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt
index ec0f1d2608458..e1a3f82ca573c 100644
--- a/compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt
+++ b/compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt
@@ -16,7 +16,6 @@ set(SANITIZER_UNITTESTS
sanitizer_bitvector_test.cpp
sanitizer_bvgraph_test.cpp
sanitizer_chained_origin_depot_test.cpp
- sanitizer_common_range_test.cpp
sanitizer_common_test.cpp
sanitizer_deadlock_detector_test.cpp
sanitizer_dense_map_test.cpp
@@ -38,6 +37,7 @@ set(SANITIZER_UNITTESTS
sanitizer_printf_test.cpp
sanitizer_procmaps_test.cpp
sanitizer_procmaps_mac_test.cpp
+ sanitizer_range_test.cpp
sanitizer_ring_buffer_test.cpp
sanitizer_quarantine_test.cpp
sanitizer_stack_store_test.cpp
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_common_range_test.cpp b/compiler-rt/lib/sanitizer_common/tests/sanitizer_range_test.cpp
similarity index 88%
rename from compiler-rt/lib/sanitizer_common/tests/sanitizer_common_range_test.cpp
rename to compiler-rt/lib/sanitizer_common/tests/sanitizer_range_test.cpp
index 2a2e1de2a6dd5..d8162152011b6 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_common_range_test.cpp
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_range_test.cpp
@@ -1,15 +1,11 @@
-//===-- sanitizer_common_region_test.cpp ----------------------------------===//
+//===-- sanitizer_region_test.cpp -----------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
-//
-// This file is a part of ThreadSanitizer/AddressSanitizer runtime.
-//
-//===----------------------------------------------------------------------===//
-#include "sanitizer_common/sanitizer_common_range.h"
+#include "sanitizer_common/sanitizer_range.h"
#include <algorithm>
diff --git a/llvm/utils/gn/secondary/compiler-rt/lib/sanitizer_common/BUILD.gn b/llvm/utils/gn/secondary/compiler-rt/lib/sanitizer_common/BUILD.gn
index 701b3fc903e3b..a7e026b8632f7 100644
--- a/llvm/utils/gn/secondary/compiler-rt/lib/sanitizer_common/BUILD.gn
+++ b/llvm/utils/gn/secondary/compiler-rt/lib/sanitizer_common/BUILD.gn
@@ -43,7 +43,6 @@ source_set("sources") {
"sanitizer_common.cpp",
"sanitizer_common.h",
"sanitizer_common_libcdep.cpp",
- "sanitizer_common_range.cpp",
"sanitizer_coverage_fuchsia.cpp",
"sanitizer_coverage_libcdep_new.cpp",
"sanitizer_coverage_win_sections.cpp",
@@ -114,6 +113,8 @@ source_set("sources") {
"sanitizer_procmaps_solaris.cpp",
"sanitizer_ptrauth.h",
"sanitizer_quarantine.h",
+ "sanitizer_range.h",
+ "sanitizer_range.cpp",
"sanitizer_redefine_builtins.h",
"sanitizer_report_decorator.h",
"sanitizer_ring_buffer.h",
More information about the llvm-commits
mailing list