Pass the ISA-specific compilation flags to the ABI implementations

Copyright (c) 2021, Arm Limited.
This commit is contained in:
Anton Kirilov
2021-11-16 23:40:19 +00:00
parent df37074218
commit 89919f4b1f
6 changed files with 21 additions and 8 deletions

View File

@@ -619,7 +619,10 @@ impl ABIMachineSpec for AArch64MachineDeps {
}
}
fn gen_debug_frame_info(flags: &settings::Flags) -> SmallInstVec<Inst> {
fn gen_debug_frame_info(
flags: &settings::Flags,
_isa_flags: &Vec<settings::Value>,
) -> SmallInstVec<Inst> {
let mut insts = SmallVec::new();
if flags.unwind_info() {
insts.push(Inst::Unwind {

View File

@@ -57,7 +57,7 @@ impl AArch64Backend {
flags: shared_settings::Flags,
) -> CodegenResult<VCode<inst::Inst>> {
let emit_info = EmitInfo::new(flags.clone());
let abi = Box::new(abi::AArch64ABICallee::new(func, flags)?);
let abi = Box::new(abi::AArch64ABICallee::new(func, flags, self.isa_flags())?);
compile::compile::<AArch64Backend>(func, self, abi, &self.reg_universe, emit_info)
}
}