From 055dd282c5d17af5495ad125a08ec6b9d66062f1 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 20 Jul 2023 12:41:14 +0200 Subject: Remove no longer needed LLVM_RUSTLLVM check The bundled version now uses the LLVM 17 code path. --- compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp') diff --git a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp index a986fa28f78..06f28f432ba 100644 --- a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp +++ b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp @@ -322,8 +322,6 @@ extern "C" void LLVMRustPrintTargetCPUs(LLVMTargetMachineRef TM, #if LLVM_VERSION_GE(17, 0) const ArrayRef CPUTable = MCInfo->getAllProcessorDescriptions(); -#elif defined(LLVM_RUSTLLVM) - const ArrayRef CPUTable = MCInfo->getCPUTable(); #else Buf << "Full target CPU help is not supported by this LLVM version.\n\n"; SubtargetSubTypeKV TargetCPUKV = { TargetCPU, {{}}, {{}} }; -- cgit 1.4.1-3-g733a5