diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2020-04-01 13:26:01 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2020-04-01 17:11:56 +1100 |
| commit | 4c8bf5028f31c0d82bbf46a50b2375131a488623 (patch) | |
| tree | 2092f2afe0c3c1105a515678ccd75b37757a0c13 | |
| parent | 2113659479a82ea69633b23ef710b58ab127755e (diff) | |
| download | rust-4c8bf5028f31c0d82bbf46a50b2375131a488623.tar.gz rust-4c8bf5028f31c0d82bbf46a50b2375131a488623.zip | |
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`.
| -rw-r--r-- | src/librustc_codegen_ssa/back/write.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/librustc_codegen_ssa/back/write.rs b/src/librustc_codegen_ssa/back/write.rs index 35c5812e1f3..b23a8d7976f 100644 --- a/src/librustc_codegen_ssa/back/write.rs +++ b/src/librustc_codegen_ssa/back/write.rs @@ -414,13 +414,6 @@ pub fn start_async_codegen<B: ExtraBackendMethods>( } OutputType::Assembly => { modules_config.emit_asm = true; - // If we're not using the LLVM assembler, this function - // could be invoked specially with output_type_assembly, so - // in this case we still want the metadata object file. - if !sess.opts.output_types.contains_key(&OutputType::Assembly) { - metadata_config.emit_obj = emit_obj; - allocator_config.emit_obj = emit_obj; - } } OutputType::Object => { modules_config.emit_obj = emit_obj; |
