[compiler-rt] dbd81ba - complete rename of __orc_rt namespace
Mikhail Goncharov via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 9 02:49:40 PDT 2024
Author: Mikhail Goncharov
Date: 2024-09-09T11:49:34+02:00
New Revision: dbd81ba2e85c2f244f22c983d96a106eae65c06a
URL: https://github.com/llvm/llvm-project/commit/dbd81ba2e85c2f244f22c983d96a106eae65c06a
DIFF: https://github.com/llvm/llvm-project/commit/dbd81ba2e85c2f244f22c983d96a106eae65c06a.diff
LOG: complete rename of __orc_rt namespace
for 3e04ad428313dde40c779af6d675b162e150125e
it's bizzare that none of the builbots were broken, only bazel build
https://buildkite.com/llvm-project/upstream-bazel/builds/109623#0191d5d0-2b3e-4ee7-b8dd-1e2580977e9b
Added:
Modified:
compiler-rt/lib/orc/string_pool.h
compiler-rt/lib/orc/tests/unit/adt_test.cpp
compiler-rt/lib/orc/tests/unit/bitmask_enum_test.cpp
compiler-rt/lib/orc/tests/unit/endian_test.cpp
compiler-rt/lib/orc/tests/unit/error_test.cpp
compiler-rt/lib/orc/tests/unit/executor_address_test.cpp
compiler-rt/lib/orc/tests/unit/executor_symbol_def_test.cpp
compiler-rt/lib/orc/tests/unit/extensible_rtti_test.cpp
compiler-rt/lib/orc/tests/unit/interval_map_test.cpp
compiler-rt/lib/orc/tests/unit/interval_set_test.cpp
compiler-rt/lib/orc/tests/unit/simple_packed_serialization_test.cpp
compiler-rt/lib/orc/tests/unit/simple_packed_serialization_utils.h
compiler-rt/lib/orc/tests/unit/string_pool_test.cpp
compiler-rt/lib/orc/tests/unit/wrapper_function_utils_test.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/orc/string_pool.h b/compiler-rt/lib/orc/string_pool.h
index 4d6e1b78c54ff5..fb93e4ff7ff002 100644
--- a/compiler-rt/lib/orc/string_pool.h
+++ b/compiler-rt/lib/orc/string_pool.h
@@ -161,9 +161,9 @@ inline bool StringPool::empty() const {
namespace std {
// Make PooledStringPtrs hashable.
-template <> struct hash<__orc_rt::PooledStringPtr> {
- size_t operator()(const __orc_rt::PooledStringPtr &A) const {
- return hash<__orc_rt::PooledStringPtr::PoolEntryPtr>()(A.S);
+template <> struct hash<orc_rt::PooledStringPtr> {
+ size_t operator()(const orc_rt::PooledStringPtr &A) const {
+ return hash<orc_rt::PooledStringPtr::PoolEntryPtr>()(A.S);
}
};
diff --git a/compiler-rt/lib/orc/tests/unit/adt_test.cpp b/compiler-rt/lib/orc/tests/unit/adt_test.cpp
index 6625a590e363c9..b93978ecab3196 100644
--- a/compiler-rt/lib/orc/tests/unit/adt_test.cpp
+++ b/compiler-rt/lib/orc/tests/unit/adt_test.cpp
@@ -16,7 +16,7 @@
#include <sstream>
#include <string>
-using namespace __orc_rt;
+using namespace orc_rt;
TEST(ADTTest, SpanDefaultConstruction) {
span<int> S;
diff --git a/compiler-rt/lib/orc/tests/unit/bitmask_enum_test.cpp b/compiler-rt/lib/orc/tests/unit/bitmask_enum_test.cpp
index 4c27d54fb4a92a..8fb92e25887689 100644
--- a/compiler-rt/lib/orc/tests/unit/bitmask_enum_test.cpp
+++ b/compiler-rt/lib/orc/tests/unit/bitmask_enum_test.cpp
@@ -16,7 +16,7 @@
#include <sstream>
#include <string>
-using namespace __orc_rt;
+using namespace orc_rt;
namespace {
@@ -24,9 +24,9 @@ enum Flags { F0 = 0, F1 = 1, F2 = 2, F3 = 4, F4 = 8 };
} // namespace
-namespace __orc_rt {
+namespace orc_rt {
ORC_RT_DECLARE_ENUM_AS_BITMASK(Flags, F4);
-} // namespace __orc_rt
+} // namespace orc_rt
static_assert(is_bitmask_enum<Flags>::value != 0);
static_assert(largest_bitmask_enum_bit<Flags>::value == Flags::F4);
diff --git a/compiler-rt/lib/orc/tests/unit/endian_test.cpp b/compiler-rt/lib/orc/tests/unit/endian_test.cpp
index 71b677af694ca6..7bc27a2aaa022b 100644
--- a/compiler-rt/lib/orc/tests/unit/endian_test.cpp
+++ b/compiler-rt/lib/orc/tests/unit/endian_test.cpp
@@ -15,7 +15,7 @@
#include "endianness.h"
#include "gtest/gtest.h"
-using namespace __orc_rt;
+using namespace orc_rt;
TEST(Endian, ByteSwap_32) {
EXPECT_EQ(0x44332211u, ByteSwap_32(0x11223344));
diff --git a/compiler-rt/lib/orc/tests/unit/error_test.cpp b/compiler-rt/lib/orc/tests/unit/error_test.cpp
index 5251d788e01b05..ac9f7eddeddaa5 100644
--- a/compiler-rt/lib/orc/tests/unit/error_test.cpp
+++ b/compiler-rt/lib/orc/tests/unit/error_test.cpp
@@ -17,7 +17,7 @@
#include "error.h"
#include "gtest/gtest.h"
-using namespace __orc_rt;
+using namespace orc_rt;
namespace {
diff --git a/compiler-rt/lib/orc/tests/unit/executor_address_test.cpp b/compiler-rt/lib/orc/tests/unit/executor_address_test.cpp
index 05b91f3f860950..1b0626df49cc6e 100644
--- a/compiler-rt/lib/orc/tests/unit/executor_address_test.cpp
+++ b/compiler-rt/lib/orc/tests/unit/executor_address_test.cpp
@@ -17,7 +17,7 @@
#include "executor_address.h"
#include "gtest/gtest.h"
-using namespace __orc_rt;
+using namespace orc_rt;
TEST(ExecutorAddrTest, DefaultAndNull) {
// Check that default constructed values and isNull behave as expected.
diff --git a/compiler-rt/lib/orc/tests/unit/executor_symbol_def_test.cpp b/compiler-rt/lib/orc/tests/unit/executor_symbol_def_test.cpp
index 181091ca1e60cd..2f7bae29e3d3ec 100644
--- a/compiler-rt/lib/orc/tests/unit/executor_symbol_def_test.cpp
+++ b/compiler-rt/lib/orc/tests/unit/executor_symbol_def_test.cpp
@@ -10,7 +10,7 @@
#include "simple_packed_serialization_utils.h"
#include "gtest/gtest.h"
-using namespace __orc_rt;
+using namespace orc_rt;
TEST(ExecutorSymbolDefTest, Serialization) {
blobSerializationRoundTrip<SPSExecutorSymbolDef>(ExecutorSymbolDef{});
diff --git a/compiler-rt/lib/orc/tests/unit/extensible_rtti_test.cpp b/compiler-rt/lib/orc/tests/unit/extensible_rtti_test.cpp
index feca1ec1d18cea..8e8cdee02487c9 100644
--- a/compiler-rt/lib/orc/tests/unit/extensible_rtti_test.cpp
+++ b/compiler-rt/lib/orc/tests/unit/extensible_rtti_test.cpp
@@ -17,7 +17,7 @@
#include "extensible_rtti.h"
#include "gtest/gtest.h"
-using namespace __orc_rt;
+using namespace orc_rt;
namespace {
diff --git a/compiler-rt/lib/orc/tests/unit/interval_map_test.cpp b/compiler-rt/lib/orc/tests/unit/interval_map_test.cpp
index a1c6958fcd5262..272fc2849ee266 100644
--- a/compiler-rt/lib/orc/tests/unit/interval_map_test.cpp
+++ b/compiler-rt/lib/orc/tests/unit/interval_map_test.cpp
@@ -13,7 +13,7 @@
#include "interval_map.h"
#include "gtest/gtest.h"
-using namespace __orc_rt;
+using namespace orc_rt;
TEST(IntervalMapTest, DefaultConstructed) {
// Check that a default-constructed IntervalMap behaves as expected.
diff --git a/compiler-rt/lib/orc/tests/unit/interval_set_test.cpp b/compiler-rt/lib/orc/tests/unit/interval_set_test.cpp
index 7971a55f271f1a..ecd3915d0ccfc6 100644
--- a/compiler-rt/lib/orc/tests/unit/interval_set_test.cpp
+++ b/compiler-rt/lib/orc/tests/unit/interval_set_test.cpp
@@ -13,7 +13,7 @@
#include "interval_set.h"
#include "gtest/gtest.h"
-using namespace __orc_rt;
+using namespace orc_rt;
TEST(IntervalSetTest, DefaultConstructed) {
// Check that a default-constructed IntervalSet behaves as expected.
diff --git a/compiler-rt/lib/orc/tests/unit/simple_packed_serialization_test.cpp b/compiler-rt/lib/orc/tests/unit/simple_packed_serialization_test.cpp
index 397114b4017e0a..50d1e024a25671 100644
--- a/compiler-rt/lib/orc/tests/unit/simple_packed_serialization_test.cpp
+++ b/compiler-rt/lib/orc/tests/unit/simple_packed_serialization_test.cpp
@@ -14,7 +14,7 @@
#include "simple_packed_serialization_utils.h"
#include "gtest/gtest.h"
-using namespace __orc_rt;
+using namespace orc_rt;
TEST(SimplePackedSerializationTest, SPSOutputBuffer) {
constexpr unsigned NumBytes = 8;
diff --git a/compiler-rt/lib/orc/tests/unit/simple_packed_serialization_utils.h b/compiler-rt/lib/orc/tests/unit/simple_packed_serialization_utils.h
index 746be43d250bd8..53b982565d144d 100644
--- a/compiler-rt/lib/orc/tests/unit/simple_packed_serialization_utils.h
+++ b/compiler-rt/lib/orc/tests/unit/simple_packed_serialization_utils.h
@@ -14,15 +14,15 @@
template <typename SPSTagT, typename T>
static void blobSerializationRoundTrip(const T &Value) {
- using BST = __orc_rt::SPSSerializationTraits<SPSTagT, T>;
+ using BST = orc_rt::SPSSerializationTraits<SPSTagT, T>;
size_t Size = BST::size(Value);
auto Buffer = std::make_unique<char[]>(Size);
- __orc_rt::SPSOutputBuffer OB(Buffer.get(), Size);
+ orc_rt::SPSOutputBuffer OB(Buffer.get(), Size);
EXPECT_TRUE(BST::serialize(OB, Value));
- __orc_rt::SPSInputBuffer IB(Buffer.get(), Size);
+ orc_rt::SPSInputBuffer IB(Buffer.get(), Size);
T DSValue;
EXPECT_TRUE(BST::deserialize(IB, DSValue));
diff --git a/compiler-rt/lib/orc/tests/unit/string_pool_test.cpp b/compiler-rt/lib/orc/tests/unit/string_pool_test.cpp
index 15ee2ce7d24dad..456a1d4d7b29a0 100644
--- a/compiler-rt/lib/orc/tests/unit/string_pool_test.cpp
+++ b/compiler-rt/lib/orc/tests/unit/string_pool_test.cpp
@@ -9,7 +9,7 @@
#include "string_pool.h"
#include "gtest/gtest.h"
-using namespace __orc_rt;
+using namespace orc_rt;
namespace {
diff --git a/compiler-rt/lib/orc/tests/unit/wrapper_function_utils_test.cpp b/compiler-rt/lib/orc/tests/unit/wrapper_function_utils_test.cpp
index f10c5093046de2..2f54f3afb32d01 100644
--- a/compiler-rt/lib/orc/tests/unit/wrapper_function_utils_test.cpp
+++ b/compiler-rt/lib/orc/tests/unit/wrapper_function_utils_test.cpp
@@ -13,7 +13,7 @@
#include "wrapper_function_utils.h"
#include "gtest/gtest.h"
-using namespace __orc_rt;
+using namespace orc_rt;
namespace {
constexpr const char *TestString = "test string";
More information about the llvm-commits
mailing list