Skip to content

Commit 7c6fe1e

Browse files
committed
remove dead code
1 parent cd43430 commit 7c6fe1e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -340,14 +340,6 @@ static FloatABI::ABIType fromRust(LLVMRustFloatABI RustFloatAbi) {
340340
report_fatal_error("Bad FloatABI.");
341341
}
342342

343-
/// getLongestEntryLength - Return the length of the longest entry in the table.
344-
template <typename KV> static size_t getLongestEntryLength(ArrayRef<KV> Table) {
345-
size_t MaxLen = 0;
346-
for (auto &I : Table)
347-
MaxLen = std::max(MaxLen, std::strlen(I.Key));
348-
return MaxLen;
349-
}
350-
351343
extern "C" void LLVMRustPrintTargetCPUs(LLVMTargetMachineRef TM,
352344
RustStringRef OutStr) {
353345
ArrayRef<SubtargetSubTypeKV> CPUTable =

0 commit comments

Comments
 (0)