[compiler-rt] 5d8e8e8 - [ORC-RT] Rename extensible_rtti.{h,cpp} to rtti.{h,cpp}. NFCI.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 23 19:49:31 PDT 2025
Author: Lang Hames
Date: 2025-03-24T13:49:23+11:00
New Revision: 5d8e8e82e1cf0df49afceffe52dbccec3084c15f
URL: https://github.com/llvm/llvm-project/commit/5d8e8e82e1cf0df49afceffe52dbccec3084c15f
DIFF: https://github.com/llvm/llvm-project/commit/5d8e8e82e1cf0df49afceffe52dbccec3084c15f.diff
LOG: [ORC-RT] Rename extensible_rtti.{h,cpp} to rtti.{h,cpp}. NFCI.
The "extensible_" prefix on these files was inherited from LLVM, where it
distinguished the dynamic RTTI APIs from the LLVM's custom static RTTI APIs.
In the ORC runtime these files will be used to hold all of our RTTI APIs
(the current dynamic ones, and any static ones added in the future), so we
shouldn't use this prefix.
Added:
compiler-rt/lib/orc/rtti.cpp
compiler-rt/lib/orc/rtti.h
compiler-rt/lib/orc/tests/unit/rtti_test.cpp
Modified:
compiler-rt/lib/orc/CMakeLists.txt
compiler-rt/lib/orc/error.h
compiler-rt/lib/orc/tests/unit/CMakeLists.txt
Removed:
compiler-rt/lib/orc/extensible_rtti.cpp
compiler-rt/lib/orc/extensible_rtti.h
compiler-rt/lib/orc/tests/unit/extensible_rtti_test.cpp
################################################################################
diff --git a/compiler-rt/lib/orc/CMakeLists.txt b/compiler-rt/lib/orc/CMakeLists.txt
index 7da230d8296e9..b8d1b03b788c9 100644
--- a/compiler-rt/lib/orc/CMakeLists.txt
+++ b/compiler-rt/lib/orc/CMakeLists.txt
@@ -4,7 +4,7 @@
set(ORC_COMMON_SOURCES
debug.cpp
dlfcn_wrapper.cpp
- extensible_rtti.cpp
+ rtti.cpp
log_error_to_stderr.cpp
run_program_wrapper.cpp
resolve.cpp
@@ -18,7 +18,7 @@ set(ORC_COMMON_IMPL_HEADERS
endianness.h
error.h
executor_address.h
- extensible_rtti.h
+ rtti.h
simple_packed_serialization.h
stl_extras.h
wrapper_function_utils.h
diff --git a/compiler-rt/lib/orc/error.h b/compiler-rt/lib/orc/error.h
index c833313ee55c1..e64332e9ae764 100644
--- a/compiler-rt/lib/orc/error.h
+++ b/compiler-rt/lib/orc/error.h
@@ -10,7 +10,7 @@
#define ORC_RT_ERROR_H
#include "compiler.h"
-#include "extensible_rtti.h"
+#include "rtti.h"
#include "stl_extras.h"
#include <cassert>
diff --git a/compiler-rt/lib/orc/extensible_rtti.cpp b/compiler-rt/lib/orc/rtti.cpp
similarity index 88%
rename from compiler-rt/lib/orc/extensible_rtti.cpp
rename to compiler-rt/lib/orc/rtti.cpp
index fce7d044a8016..5989955aca2ac 100644
--- a/compiler-rt/lib/orc/extensible_rtti.cpp
+++ b/compiler-rt/lib/orc/rtti.cpp
@@ -1,4 +1,4 @@
-//===- extensible_rtti.cpp ------------------------------------------------===//
+//===- rtti.cpp -----------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -14,7 +14,7 @@
//
//===----------------------------------------------------------------------===//
-#include "extensible_rtti.h"
+#include "rtti.h"
namespace orc_rt {
diff --git a/compiler-rt/lib/orc/extensible_rtti.h b/compiler-rt/lib/orc/rtti.h
similarity index 96%
rename from compiler-rt/lib/orc/extensible_rtti.h
rename to compiler-rt/lib/orc/rtti.h
index d0363b4f1ee0f..d9d18140dcc16 100644
--- a/compiler-rt/lib/orc/extensible_rtti.h
+++ b/compiler-rt/lib/orc/rtti.h
@@ -1,4 +1,4 @@
-//===------ extensible_rtti.h - Extensible RTTI for ORC RT ------*- C++ -*-===//
+//===------------- rtti.h - RTTI support for ORC RT -------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -56,8 +56,8 @@
//
//===----------------------------------------------------------------------===//
-#ifndef ORC_RT_EXTENSIBLE_RTTI_H
-#define ORC_RT_EXTENSIBLE_RTTI_H
+#ifndef ORC_RT_RTTI_H
+#define ORC_RT_RTTI_H
namespace orc_rt {
@@ -142,4 +142,4 @@ template <typename To, typename From> bool isa(const From &Value) {
} // namespace orc_rt
-#endif // ORC_RT_EXTENSIBLE_RTTI_H
+#endif // ORC_RT_RTTI_H
diff --git a/compiler-rt/lib/orc/tests/unit/CMakeLists.txt b/compiler-rt/lib/orc/tests/unit/CMakeLists.txt
index 16cd16c45683d..5e1291142e93b 100644
--- a/compiler-rt/lib/orc/tests/unit/CMakeLists.txt
+++ b/compiler-rt/lib/orc/tests/unit/CMakeLists.txt
@@ -7,7 +7,7 @@ set(UNITTEST_SOURCES
error_test.cpp
executor_address_test.cpp
executor_symbol_def_test.cpp
- extensible_rtti_test.cpp
+ rtti_test.cpp
interval_map_test.cpp
interval_set_test.cpp
orc_unit_test_main.cpp
diff --git a/compiler-rt/lib/orc/tests/unit/extensible_rtti_test.cpp b/compiler-rt/lib/orc/tests/unit/rtti_test.cpp
similarity index 93%
rename from compiler-rt/lib/orc/tests/unit/extensible_rtti_test.cpp
rename to compiler-rt/lib/orc/tests/unit/rtti_test.cpp
index 8e8cdee02487c..7a582287e9f71 100644
--- a/compiler-rt/lib/orc/tests/unit/extensible_rtti_test.cpp
+++ b/compiler-rt/lib/orc/tests/unit/rtti_test.cpp
@@ -1,4 +1,4 @@
-//===-- extensible_rtti_test.cpp ------------------------------------------===//
+//===-- rtti_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.
@@ -14,7 +14,7 @@
//
//===----------------------------------------------------------------------===//
-#include "extensible_rtti.h"
+#include "rtti.h"
#include "gtest/gtest.h"
using namespace orc_rt;
More information about the llvm-commits
mailing list