Remove CodeGenOptLevel::Other
Also introduced in #35174, and immediately unused.
This commit is contained in:
parent
fc163ed4ee
commit
7a0b195188
@ -975,7 +975,6 @@ pub unsafe fn with_llvm_pmb(
|
||||
(llvm::CodeGenOptLevel::Default, ..) => {
|
||||
llvm::LLVMPassManagerBuilderUseInlinerWithThreshold(builder, 225);
|
||||
}
|
||||
(llvm::CodeGenOptLevel::Other, ..) => bug!("CodeGenOptLevel::Other selected"),
|
||||
}
|
||||
|
||||
f(builder);
|
||||
|
@ -401,9 +401,6 @@ pub fn from_generic(asm: rustc_ast::ast::LlvmAsmDialect) -> Self {
|
||||
#[derive(Copy, Clone, PartialEq)]
|
||||
#[repr(C)]
|
||||
pub enum CodeGenOptLevel {
|
||||
// FIXME: figure out if this variant is needed at all.
|
||||
#[allow(dead_code)]
|
||||
Other,
|
||||
None,
|
||||
Less,
|
||||
Default,
|
||||
|
@ -311,7 +311,6 @@ static Optional<CodeModel::Model> fromRust(LLVMRustCodeModel Model) {
|
||||
}
|
||||
|
||||
enum class LLVMRustCodeGenOptLevel {
|
||||
Other,
|
||||
None,
|
||||
Less,
|
||||
Default,
|
||||
|
Loading…
Reference in New Issue
Block a user