1
Fork 0

Refactor #82270 as lint instead of an error

This commit is contained in:
Amanieu d'Antras 2021-03-24 04:52:57 +00:00
parent 2bd94f4aa9
commit 5dabc80796
6 changed files with 179 additions and 118 deletions

View file

@ -793,13 +793,6 @@ impl Session {
}
}
pub fn inline_asm_dialect(&self) -> rustc_ast::LlvmAsmDialect {
match self.asm_arch {
Some(InlineAsmArch::X86 | InlineAsmArch::X86_64) => rustc_ast::LlvmAsmDialect::Intel,
_ => rustc_ast::LlvmAsmDialect::Att,
}
}
pub fn relocation_model(&self) -> RelocModel {
self.opts.cg.relocation_model.unwrap_or(self.target.relocation_model)
}