Remove CodeGenOptLevel::Other

Also introduced in #35174, and immediately unused.
This commit is contained in:
Mark Rousskov 2020-08-12 12:01:20 -04:00
parent fc163ed4ee
commit 7a0b195188
3 changed files with 0 additions and 5 deletions

View File

@ -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);

View File

@ -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,

View File

@ -311,7 +311,6 @@ static Optional<CodeModel::Model> fromRust(LLVMRustCodeModel Model) {
}
enum class LLVMRustCodeGenOptLevel {
Other,
None,
Less,
Default,