TargetIsa implies a Display of shared and isa-specific flags
This commit is contained in:
committed by
Jakob Stoklund Olesen
parent
21f0fc39ad
commit
099b959d57
@@ -15,6 +15,7 @@ use ir;
|
||||
use regalloc;
|
||||
use result;
|
||||
use timing;
|
||||
use std::fmt;
|
||||
|
||||
|
||||
#[allow(dead_code)]
|
||||
@@ -116,3 +117,9 @@ impl TargetIsa for Isa {
|
||||
abi::prologue_epilogue(func, self)
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for Isa {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "{}\n{}", self.shared_flags, self.isa_flags)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user