Add clif-util compile option to output object file (#5493)
* add clif-util compile option to output object file * switch from a box to a borrow * update objectmodule tests to use borrowed isa * put targetisa into an arc
This commit is contained in:
@@ -49,7 +49,7 @@ fn write_non_default_flags(f: &mut fmt::Formatter<'_>, flags: &settings::Flags)
|
||||
/// A generated function with an ISA that targets one of cranelift's backends.
|
||||
pub struct FunctionWithIsa {
|
||||
/// TargetIsa to use when compiling this test case
|
||||
pub isa: Box<dyn isa::TargetIsa>,
|
||||
pub isa: isa::OwnedTargetIsa,
|
||||
|
||||
/// Function under test
|
||||
pub func: Function,
|
||||
@@ -96,7 +96,7 @@ impl<'a> Arbitrary<'a> for FunctionWithIsa {
|
||||
|
||||
pub struct TestCase {
|
||||
/// TargetIsa to use when compiling this test case
|
||||
pub isa: Box<dyn isa::TargetIsa>,
|
||||
pub isa: isa::OwnedTargetIsa,
|
||||
/// Function under test
|
||||
pub func: Function,
|
||||
/// Generate multiple test inputs for each test case.
|
||||
|
||||
Reference in New Issue
Block a user