Commit f6381378 authored by qinsoon's avatar qinsoon

forgot changing aarch64 backend

parent 3bc38a25
......@@ -395,6 +395,7 @@ lazy_static! {
//X18.clone(), // Platform Register
];
#[allow(dead_code)]
static ref ALL_GPRS : [P<Value>; 30] = [
X0.clone(),
X1.clone(),
......@@ -584,6 +585,7 @@ lazy_static!{
D31.clone()
];
#[allow(dead_code)]
static ref ALL_FPRS : [P<Value>; 32] = [
D0.clone(),
D1.clone(),
......@@ -759,8 +761,8 @@ pub fn init_machine_regs_for_func (func_context: &mut FunctionContext) {
pub fn number_of_usable_regs_in_group(group: RegGroup) -> usize {
match group {
RegGroup::GPR => ALL_GPRS.len(),
RegGroup::FPR => ALL_FPRS.len(),
RegGroup::GPR => ALL_USABLE_GPRS.len(),
RegGroup::FPR => ALL_USABLE_FPRS.len(),
RegGroup::GPREX => unimplemented!(),
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment