Make MachBackend::triple return &Triple
This avoids an unnecessary clone
This commit is contained in:
@@ -390,7 +390,7 @@ pub trait MachBackend {
|
||||
fn isa_flags(&self) -> Vec<settings::Value>;
|
||||
|
||||
/// Return triple for this backend.
|
||||
fn triple(&self) -> Triple;
|
||||
fn triple(&self) -> &Triple;
|
||||
|
||||
/// Return name for this backend.
|
||||
fn name(&self) -> &'static str;
|
||||
|
||||
Reference in New Issue
Block a user