about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper
diff options
context:
space:
mode:
authorklensy <klensy@users.noreply.github.com>2025-09-11 21:43:18 +0300
committerklensy <klensy@users.noreply.github.com>2025-09-11 21:43:18 +0300
commitacb35038ff21f7f41866b8ea36fed72d9fbc6640 (patch)
treedc8a3860ad54706ee3cffc06c4bc3d70124ea1d5 /compiler/rustc_llvm/llvm-wrapper
parent0e5281cea815c5a61ba7e4b8c4dfaaca2c587ca3 (diff)
downloadrust-acb35038ff21f7f41866b8ea36fed72d9fbc6640.tar.gz
rust-acb35038ff21f7f41866b8ea36fed72d9fbc6640.zip
remove unused getLongestEntryLength
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper')
-rw-r--r--compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
index d970c4a5422..91d11ba317a 100644
--- a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
+++ b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
@@ -224,14 +224,6 @@ static FloatABI::ABIType fromRust(LLVMRustFloatABI RustFloatAbi) {
   report_fatal_error("Bad FloatABI.");
 }
 
-/// getLongestEntryLength - Return the length of the longest entry in the table.
-template <typename KV> static size_t getLongestEntryLength(ArrayRef<KV> Table) {
-  size_t MaxLen = 0;
-  for (auto &I : Table)
-    MaxLen = std::max(MaxLen, std::strlen(I.Key));
-  return MaxLen;
-}
-
 extern "C" void LLVMRustPrintTargetCPUs(LLVMTargetMachineRef TM,
                                         RustStringRef OutStr) {
   ArrayRef<SubtargetSubTypeKV> CPUTable =