Return RegInfo by value from TargetIsa::register_info().
The struct is just a pair of static references, and we don't need the double indirection.
This commit is contained in:
@@ -49,8 +49,8 @@ impl TargetIsa for Isa {
|
||||
&self.shared_flags
|
||||
}
|
||||
|
||||
fn register_info(&self) -> &RegInfo {
|
||||
®isters::INFO
|
||||
fn register_info(&self) -> RegInfo {
|
||||
registers::INFO.clone()
|
||||
}
|
||||
|
||||
fn encode(&self, _: &DataFlowGraph, inst: &InstructionData) -> Result<Encoding, Legalize> {
|
||||
|
||||
Reference in New Issue
Block a user