Update the object crate to 0.27.0 (#3465)
Mostly just keeping us up to date with changes there since we somewhat heavily rely on it now.
This commit is contained in:
@@ -12,7 +12,7 @@ edition = "2018"
|
||||
[dependencies]
|
||||
cranelift-module = { path = "../module", version = "0.77.0" }
|
||||
cranelift-codegen = { path = "../codegen", version = "0.77.0", default-features = false, features = ["std"] }
|
||||
object = { version = "0.26.0", default-features = false, features = ["write"] }
|
||||
object = { version = "0.27.0", default-features = false, features = ["write"] }
|
||||
target-lexicon = "0.12"
|
||||
anyhow = "1.0"
|
||||
log = { version = "0.4.6", default-features = false }
|
||||
|
||||
@@ -114,7 +114,7 @@ impl ObjectBuilder {
|
||||
/// See the `ObjectBuilder` for a convenient way to construct `ObjectModule` instances.
|
||||
pub struct ObjectModule {
|
||||
isa: Box<dyn TargetIsa>,
|
||||
object: Object,
|
||||
object: Object<'static>,
|
||||
declarations: ModuleDeclarations,
|
||||
functions: SecondaryMap<FuncId, Option<(SymbolId, bool)>>,
|
||||
data_objects: SecondaryMap<DataId, Option<(SymbolId, bool)>>,
|
||||
@@ -669,7 +669,7 @@ fn translate_linkage(linkage: Linkage) -> (SymbolScope, bool) {
|
||||
/// compilation.
|
||||
pub struct ObjectProduct {
|
||||
/// Object artifact with all functions and data from the module defined.
|
||||
pub object: Object,
|
||||
pub object: Object<'static>,
|
||||
/// Symbol IDs for functions (both declared and defined).
|
||||
pub functions: SecondaryMap<FuncId, Option<(SymbolId, bool)>>,
|
||||
/// Symbol IDs for data objects (both declared and defined).
|
||||
|
||||
Reference in New Issue
Block a user