Skip to content

Commit fa89142

Browse files
committed
Remove unused OutputType::ThinLinkBitcode
1 parent 9290308 commit fa89142

File tree

3 files changed

+2
-16
lines changed

3 files changed

+2
-16
lines changed

compiler/rustc_codegen_cranelift/src/driver/aot.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ fn produce_final_output_artifacts(
210210
// to get rid of it.
211211
for output_type in crate_output.outputs.keys() {
212212
match *output_type {
213-
OutputType::Bitcode | OutputType::ThinLinkBitcode | OutputType::ThinBitcode => {
213+
OutputType::Bitcode | OutputType::ThinLinkBitcode => {
214214
// Cranelift doesn't have bitcode
215215
// user_wants_bitcode = true;
216216
// // Copy to .bc, but always keep the .0.bc. There is a later

compiler/rustc_codegen_ssa/src/back/write.rs

-3
Original file line numberDiff line numberDiff line change
@@ -629,9 +629,6 @@ fn produce_final_output_artifacts(
629629
// them for making an rlib.
630630
copy_if_one_unit(OutputType::Bitcode, true);
631631
}
632-
OutputType::ThinBitcode => {
633-
copy_if_one_unit(OutputType::ThinBitcode, true);
634-
}
635632
OutputType::ThinLinkBitcode => {
636633
copy_if_one_unit(OutputType::ThinLinkBitcode, false);
637634
}

compiler/rustc_session/src/config.rs

+1-12
Original file line numberDiff line numberDiff line change
@@ -545,9 +545,6 @@ pub enum OutputType {
545545
Bitcode,
546546
/// This is the summary or index data part of the ThinLTO bitcode.
547547
ThinLinkBitcode,
548-
/// This is ThinLTO's pre-link bitcode, primarily used for embedding bitcode in object files.
549-
/// This can also be used for FatLTO.
550-
ThinBitcode,
551548
Assembly,
552549
LlvmAssembly,
553550
Mir,
@@ -578,7 +575,6 @@ impl OutputType {
578575
OutputType::Exe | OutputType::DepInfo | OutputType::Metadata => true,
579576
OutputType::Bitcode
580577
| OutputType::ThinLinkBitcode
581-
| OutputType::ThinBitcode
582578
| OutputType::Assembly
583579
| OutputType::LlvmAssembly
584580
| OutputType::Mir
@@ -590,7 +586,6 @@ impl OutputType {
590586
match *self {
591587
OutputType::Bitcode => "llvm-bc",
592588
OutputType::ThinLinkBitcode => "thin-link-bitcode",
593-
OutputType::ThinBitcode => "thin-llvm-bc",
594589
OutputType::Assembly => "asm",
595590
OutputType::LlvmAssembly => "llvm-ir",
596591
OutputType::Mir => "mir",
@@ -608,7 +603,6 @@ impl OutputType {
608603
"mir" => OutputType::Mir,
609604
"llvm-bc" => OutputType::Bitcode,
610605
"thin-link-bitcode" => OutputType::ThinLinkBitcode,
611-
"thin-llvm-bc" => OutputType::ThinBitcode,
612606
"obj" => OutputType::Object,
613607
"metadata" => OutputType::Metadata,
614608
"link" => OutputType::Exe,
@@ -619,10 +613,9 @@ impl OutputType {
619613

620614
fn shorthands_display() -> String {
621615
format!(
622-
"`{}`, `{}`, `{}`, `{}`, `{}`, `{}`, `{}`, `{}`, `{}`, `{}`",
616+
"`{}`, `{}`, `{}`, `{}`, `{}`, `{}`, `{}`, `{}`, `{}`",
623617
OutputType::Bitcode.shorthand(),
624618
OutputType::ThinLinkBitcode.shorthand(),
625-
OutputType::ThinBitcode.shorthand(),
626619
OutputType::Assembly.shorthand(),
627620
OutputType::LlvmAssembly.shorthand(),
628621
OutputType::Mir.shorthand(),
@@ -637,7 +630,6 @@ impl OutputType {
637630
match *self {
638631
OutputType::Bitcode => "bc",
639632
OutputType::ThinLinkBitcode => "indexing.o",
640-
OutputType::ThinBitcode => "thin.bc",
641633
OutputType::Assembly => "s",
642634
OutputType::LlvmAssembly => "ll",
643635
OutputType::Mir => "mir",
@@ -656,7 +648,6 @@ impl OutputType {
656648
| OutputType::DepInfo => true,
657649
OutputType::Bitcode
658650
| OutputType::ThinLinkBitcode
659-
| OutputType::ThinBitcode
660651
| OutputType::Object
661652
| OutputType::Metadata
662653
| OutputType::Exe => false,
@@ -744,7 +735,6 @@ impl OutputTypes {
744735
self.0.keys().any(|k| match *k {
745736
OutputType::Bitcode
746737
| OutputType::ThinLinkBitcode
747-
| OutputType::ThinBitcode
748738
| OutputType::Assembly
749739
| OutputType::LlvmAssembly
750740
| OutputType::Mir
@@ -759,7 +749,6 @@ impl OutputTypes {
759749
self.0.keys().any(|k| match *k {
760750
OutputType::Bitcode
761751
| OutputType::ThinLinkBitcode
762-
| OutputType::ThinBitcode
763752
| OutputType::Assembly
764753
| OutputType::LlvmAssembly
765754
| OutputType::Mir

0 commit comments

Comments
 (0)