We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e5281c commit acb3503Copy full SHA for acb3503
compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
@@ -224,14 +224,6 @@ static FloatABI::ABIType fromRust(LLVMRustFloatABI RustFloatAbi) {
224
report_fatal_error("Bad FloatABI.");
225
}
226
227
-/// getLongestEntryLength - Return the length of the longest entry in the table.
228
-template <typename KV> static size_t getLongestEntryLength(ArrayRef<KV> Table) {
229
- size_t MaxLen = 0;
230
- for (auto &I : Table)
231
- MaxLen = std::max(MaxLen, std::strlen(I.Key));
232
- return MaxLen;
233
-}
234
-
235
extern "C" void LLVMRustPrintTargetCPUs(LLVMTargetMachineRef TM,
236
RustStringRef OutStr) {
237
ArrayRef<SubtargetSubTypeKV> CPUTable =
0 commit comments