Remove reg_universe method from MachBackend and MachInst
This commit is contained in:
@@ -859,10 +859,6 @@ impl MachInst for Inst {
|
||||
}
|
||||
}
|
||||
|
||||
fn reg_universe(_flags: &settings::Flags) -> RealRegUniverse {
|
||||
create_reg_universe()
|
||||
}
|
||||
|
||||
fn worst_case_size() -> CodeOffset {
|
||||
// It inst with four 32-bit instructions
|
||||
2 + 4 * 4
|
||||
|
||||
@@ -49,7 +49,7 @@ impl Arm32Backend {
|
||||
// block layout and finalizes branches. The result is ready for binary emission.
|
||||
let emit_info = EmitInfo::new(flags.clone());
|
||||
let abi = Box::new(abi::Arm32ABICallee::new(func, flags)?);
|
||||
compile::compile::<Arm32Backend>(func, self, abi, self.reg_universe(), emit_info)
|
||||
compile::compile::<Arm32Backend>(func, self, abi, &self.reg_universe, emit_info)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -100,10 +100,6 @@ impl MachBackend for Arm32Backend {
|
||||
Vec::new()
|
||||
}
|
||||
|
||||
fn reg_universe(&self) -> &RealRegUniverse {
|
||||
&self.reg_universe
|
||||
}
|
||||
|
||||
fn unsigned_add_overflow_condition(&self) -> IntCC {
|
||||
// Carry flag set.
|
||||
IntCC::UnsignedGreaterThanOrEqual
|
||||
|
||||
Reference in New Issue
Block a user