Skip to content

Commit 4c8bf50

Browse files
committed
Remove some dead code.
The condition checks if `sess.opts.output_types` doesn't contain `OutputType::Assembly` within a match arm that is only reached if `sess.opts.output_types` contains `OutputType::Assembly`.
1 parent 2113659 commit 4c8bf50

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/librustc_codegen_ssa/back/write.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -414,13 +414,6 @@ pub fn start_async_codegen<B: ExtraBackendMethods>(
414414
}
415415
OutputType::Assembly => {
416416
modules_config.emit_asm = true;
417-
// If we're not using the LLVM assembler, this function
418-
// could be invoked specially with output_type_assembly, so
419-
// in this case we still want the metadata object file.
420-
if !sess.opts.output_types.contains_key(&OutputType::Assembly) {
421-
metadata_config.emit_obj = emit_obj;
422-
allocator_config.emit_obj = emit_obj;
423-
}
424417
}
425418
OutputType::Object => {
426419
modules_config.emit_obj = emit_obj;

0 commit comments

Comments
 (0)