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:
@@ -132,7 +132,7 @@ pub trait TargetIsa {
|
||||
fn flags(&self) -> &settings::Flags;
|
||||
|
||||
/// Get a data structure describing the registers in this ISA.
|
||||
fn register_info(&self) -> &RegInfo;
|
||||
fn register_info(&self) -> RegInfo;
|
||||
|
||||
/// Encode an instruction after determining it is legal.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user