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`.
This commit is contained in:
parent
2113659479
commit
4c8bf5028f
1 changed files with 0 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue