From b6fe1127e4b28aded8a1b0f95340e2de7dc12716 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 22 Jan 2018 17:30:22 -0800 Subject: [PATCH] llvm6: Remove MIPS64 archive variant It looks like LLVM also removed it in llvm-mirror/llvm@f45adc29d in favor of the name "GNU64". This was added in the thought that we'd need such a variant when adding mips64 support but we ended up not needing it! For now let's just removing the various support on the Rust side of things. --- src/librustc_llvm/ffi.rs | 1 - src/librustc_llvm/lib.rs | 1 - src/rustllvm/ArchiveWrapper.cpp | 3 --- 3 files changed, 5 deletions(-) diff --git a/src/librustc_llvm/ffi.rs b/src/librustc_llvm/ffi.rs index 9ce34a95eff6..f5989a77fa92 100644 --- a/src/librustc_llvm/ffi.rs +++ b/src/librustc_llvm/ffi.rs @@ -330,7 +330,6 @@ pub enum DiagnosticKind { pub enum ArchiveKind { Other, K_GNU, - K_MIPS64, K_BSD, K_COFF, } diff --git a/src/librustc_llvm/lib.rs b/src/librustc_llvm/lib.rs index c75a026a0f8b..8dcf7444dd18 100644 --- a/src/librustc_llvm/lib.rs +++ b/src/librustc_llvm/lib.rs @@ -105,7 +105,6 @@ impl FromStr for ArchiveKind { fn from_str(s: &str) -> Result { match s { "gnu" => Ok(ArchiveKind::K_GNU), - "mips64" => Ok(ArchiveKind::K_MIPS64), "bsd" => Ok(ArchiveKind::K_BSD), "coff" => Ok(ArchiveKind::K_COFF), _ => Err(()), diff --git a/src/rustllvm/ArchiveWrapper.cpp b/src/rustllvm/ArchiveWrapper.cpp index b110013ceaed..d185da9c2f83 100644 --- a/src/rustllvm/ArchiveWrapper.cpp +++ b/src/rustllvm/ArchiveWrapper.cpp @@ -42,7 +42,6 @@ struct RustArchiveIterator { enum class LLVMRustArchiveKind { Other, GNU, - MIPS64, BSD, COFF, }; @@ -51,8 +50,6 @@ static Archive::Kind fromRust(LLVMRustArchiveKind Kind) { switch (Kind) { case LLVMRustArchiveKind::GNU: return Archive::K_GNU; - case LLVMRustArchiveKind::MIPS64: - return Archive::K_MIPS64; case LLVMRustArchiveKind::BSD: return Archive::K_BSD; case LLVMRustArchiveKind::COFF: