aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-13 13:12:37 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-13 13:12:37 +0800
commit65321c12beb31c5743e0cf3f28e7aec178b730a2 (patch)
tree7900d79488cd646d8afa541d583e54c1eb6afebf
parent444db30751380e8fe459bfeae4c5bb2a93c596eb (diff)
downloadrcc-project-65321c12beb31c5743e0cf3f28e7aec178b730a2.tar.gz
rcc-project-65321c12beb31c5743e0cf3f28e7aec178b730a2.tar.xz
[CodeGen] Remove the unused property query
-rw-r--r--backend/include/rcc/CodeGen/MachineFunctionProperties.h1
-rw-r--r--backend/lib/CodeGen/MachineFunctionProperties.cpp4
2 files changed, 0 insertions, 5 deletions
diff --git a/backend/include/rcc/CodeGen/MachineFunctionProperties.h b/backend/include/rcc/CodeGen/MachineFunctionProperties.h
index 39a4fce..95b247c 100644
--- a/backend/include/rcc/CodeGen/MachineFunctionProperties.h
+++ b/backend/include/rcc/CodeGen/MachineFunctionProperties.h
@@ -34,7 +34,6 @@ enum class MachineFunctionProperty : std::uint8_t {
Count,
};
-[[nodiscard]] bool isKnownMachineFunctionProperty(MachineFunctionProperty Property) noexcept;
[[nodiscard]] std::string_view
getMachineFunctionPropertyName(MachineFunctionProperty Property) noexcept;
diff --git a/backend/lib/CodeGen/MachineFunctionProperties.cpp b/backend/lib/CodeGen/MachineFunctionProperties.cpp
index d3dfdac..829ad3e 100644
--- a/backend/lib/CodeGen/MachineFunctionProperties.cpp
+++ b/backend/lib/CodeGen/MachineFunctionProperties.cpp
@@ -28,10 +28,6 @@ static_assert(PropertyNames.size() == static_cast<std::size_t>(MachineFunctionPr
} // namespace
-bool isKnownMachineFunctionProperty(MachineFunctionProperty Property) noexcept {
- return static_cast<std::size_t>(Property) < PropertyNames.size();
-}
-
std::string_view getMachineFunctionPropertyName(MachineFunctionProperty Property) noexcept {
const auto Index = static_cast<std::size_t>(Property);
if (Index >= PropertyNames.size())