Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Update target-lexicon to 0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
philipc authored and bnjbvr committed Jan 10, 2020
1 parent 8033363 commit f4684cc
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -39,7 +39,7 @@ serde = "1.0.8"
term = "0.6.1"
capstone = { version = "0.6.0", optional = true }
wabt = { version = "0.9.1", optional = true }
target-lexicon = "0.9"
target-lexicon = "0.10"
pretty_env_logger = "0.3.0"
file-per-thread-logger = "0.1.2"
indicatif = "0.13.0"
Expand Down
2 changes: 1 addition & 1 deletion cranelift-codegen/Cargo.toml
Expand Up @@ -17,7 +17,7 @@ cranelift-codegen-shared = { path = "./shared", version = "0.52.0" }
cranelift-entity = { path = "../cranelift-entity", version = "0.52.0" }
cranelift-bforest = { path = "../cranelift-bforest", version = "0.52.0" }
hashbrown = { version = "0.6", optional = true }
target-lexicon = "0.9"
target-lexicon = "0.10"
log = { version = "0.4.6", default-features = false }
serde = { version = "1.0.94", features = ["derive"], optional = true }
smallvec = { version = "1.0.0" }
Expand Down
6 changes: 3 additions & 3 deletions cranelift-faerie/Cargo.toml
Expand Up @@ -11,10 +11,10 @@ edition = "2018"

[dependencies]
cranelift-module = { path = "../cranelift-module", version = "0.52.0" }
faerie = "0.12.0"
faerie = "0.14.0"
goblin = "0.1.0"
failure = "0.1.2"
target-lexicon = "0.9"
anyhow = "1.0"
target-lexicon = "0.10"

[dependencies.cranelift-codegen]
path = "../cranelift-codegen"
Expand Down
2 changes: 1 addition & 1 deletion cranelift-faerie/src/backend.rs
Expand Up @@ -2,6 +2,7 @@

use crate::container;
use crate::traps::{FaerieTrapManifest, FaerieTrapSink};
use anyhow::Error;
use cranelift_codegen::binemit::{
Addend, CodeOffset, NullStackmapSink, NullTrapSink, Reloc, RelocSink, Stackmap, StackmapSink,
};
Expand All @@ -12,7 +13,6 @@ use cranelift_module::{
ModuleNamespace, ModuleResult,
};
use faerie;
use failure::Error;
use std::fs::File;
use target_lexicon::Triple;

Expand Down
2 changes: 1 addition & 1 deletion cranelift-frontend/Cargo.toml
Expand Up @@ -12,7 +12,7 @@ edition = "2018"

[dependencies]
cranelift-codegen = { path = "../cranelift-codegen", version = "0.52.0", default-features = false }
target-lexicon = "0.9"
target-lexicon = "0.10"
log = { version = "0.4.6", default-features = false }
hashbrown = { version = "0.6", optional = true }
smallvec = { version = "1.0.0" }
Expand Down
2 changes: 1 addition & 1 deletion cranelift-native/Cargo.toml
Expand Up @@ -11,7 +11,7 @@ edition = "2018"

[dependencies]
cranelift-codegen = { path = "../cranelift-codegen", version = "0.52.0", default-features = false }
target-lexicon = "0.9"
target-lexicon = "0.10"

[target.'cfg(any(target_arch = "x86", target_arch = "x86_64"))'.dependencies]
raw-cpuid = "7.0.3"
Expand Down
4 changes: 2 additions & 2 deletions cranelift-object/Cargo.toml
Expand Up @@ -11,8 +11,8 @@ edition = "2018"

[dependencies]
cranelift-module = { path = "../cranelift-module", version = "0.52.0" }
object = { version = "0.16", default-features = false, features = ["write"] }
target-lexicon = "0.9"
object = { version = "0.17", default-features = false, features = ["write"] }
target-lexicon = "0.10"

[dependencies.cranelift-codegen]
path = "../cranelift-codegen"
Expand Down
15 changes: 10 additions & 5 deletions cranelift-object/src/backend.rs
Expand Up @@ -11,8 +11,10 @@ use cranelift_module::{
Backend, DataContext, DataDescription, DataId, FuncId, Init, Linkage, ModuleNamespace,
ModuleResult,
};
use object::write::{Object, Relocation, SectionId, StandardSection, Symbol, SymbolId};
use object::{RelocationEncoding, RelocationKind, SymbolKind, SymbolScope};
use object::write::{
Object, Relocation, SectionId, StandardSection, Symbol, SymbolId, SymbolSection,
};
use object::{RelocationEncoding, RelocationKind, SymbolFlags, SymbolKind, SymbolScope};
use std::collections::HashMap;
use target_lexicon::PointerWidth;

Expand Down Expand Up @@ -133,7 +135,8 @@ impl Backend for ObjectBackend {
kind: SymbolKind::Text,
scope,
weak,
section: None,
section: SymbolSection::Undefined,
flags: SymbolFlags::None,
});
self.functions[id] = Some(symbol_id);
}
Expand Down Expand Up @@ -161,7 +164,8 @@ impl Backend for ObjectBackend {
kind: SymbolKind::Data,
scope,
weak,
section: None,
section: SymbolSection::Undefined,
flags: SymbolFlags::None,
});
self.data_objects[id] = Some(symbol_id);
}
Expand Down Expand Up @@ -432,7 +436,8 @@ impl ObjectBackend {
kind: SymbolKind::Text,
scope: SymbolScope::Unknown,
weak: false,
section: None,
section: SymbolSection::Undefined,
flags: SymbolFlags::None,
});
self.libcalls.insert(*libcall, symbol);
symbol
Expand Down
2 changes: 1 addition & 1 deletion cranelift-reader/Cargo.toml
Expand Up @@ -11,7 +11,7 @@ edition = "2018"

[dependencies]
cranelift-codegen = { path = "../cranelift-codegen", version = "0.52.0" }
target-lexicon = "0.9"
target-lexicon = "0.10"

[badges]
maintenance = { status = "experimental" }
Expand Down
2 changes: 1 addition & 1 deletion cranelift-simplejit/Cargo.toml
Expand Up @@ -15,7 +15,7 @@ cranelift-native = { path = "../cranelift-native", version = "0.52.0" }
region = "2.0.0"
libc = { version = "0.2.42" }
errno = "0.2.4"
target-lexicon = "0.9"
target-lexicon = "0.10"
memmap = { version = "0.7.0", optional = true }

[dependencies.cranelift-codegen]
Expand Down
2 changes: 1 addition & 1 deletion cranelift-wasm/Cargo.toml
Expand Up @@ -22,7 +22,7 @@ thiserror = "1.0.4"

[dev-dependencies]
wabt = "0.9.1"
target-lexicon = "0.9"
target-lexicon = "0.10"

[features]
default = ["std", "basic-blocks"]
Expand Down
2 changes: 1 addition & 1 deletion fuzz/Cargo.toml
Expand Up @@ -15,7 +15,7 @@ libfuzzer-sys = { git = "https://github.com/rust-fuzz/libfuzzer-sys.git" }
cranelift-codegen = { path = "../cranelift-codegen" }
cranelift-wasm = { path = "../cranelift-wasm" }
cranelift-reader = { path = "../cranelift-reader" }
target-lexicon = "0.9"
target-lexicon = "0.10"

# Prevent this from interfering with workspaces
[workspace]
Expand Down

0 comments on commit f4684cc

Please sign in to comment.