Update Cranelift

This commit is contained in:
bjorn3 2020-03-19 12:09:21 +01:00
parent d74c151b69
commit 52f90c6308
2 changed files with 28 additions and 23 deletions

47
Cargo.lock generated
View file

@ -1,5 +1,11 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
[[package]]
name = "anyhow"
version = "1.0.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "013a6e0a2cbe3d20f9c60b65458f7a7f7a5e636c5d0f45a5a6aee5d4b1f01785"
[[package]]
name = "ar"
version = "0.8.0"
@ -38,16 +44,16 @@ checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
[[package]]
name = "cranelift-bforest"
version = "0.59.0"
source = "git+https://github.com/bytecodealliance/wasmtime/#e2f6c0805231daa0524d7c770d11ced6dfe961a2"
version = "0.60.0"
source = "git+https://github.com/bytecodealliance/wasmtime/#1c55eb1a8bba9e59df604a0df2b6552dd54e76a7"
dependencies = [
"cranelift-entity",
]
[[package]]
name = "cranelift-codegen"
version = "0.59.0"
source = "git+https://github.com/bytecodealliance/wasmtime/#e2f6c0805231daa0524d7c770d11ced6dfe961a2"
version = "0.60.0"
source = "git+https://github.com/bytecodealliance/wasmtime/#1c55eb1a8bba9e59df604a0df2b6552dd54e76a7"
dependencies = [
"byteorder",
"cranelift-bforest",
@ -63,8 +69,8 @@ dependencies = [
[[package]]
name = "cranelift-codegen-meta"
version = "0.59.0"
source = "git+https://github.com/bytecodealliance/wasmtime/#e2f6c0805231daa0524d7c770d11ced6dfe961a2"
version = "0.60.0"
source = "git+https://github.com/bytecodealliance/wasmtime/#1c55eb1a8bba9e59df604a0df2b6552dd54e76a7"
dependencies = [
"cranelift-codegen-shared",
"cranelift-entity",
@ -72,18 +78,18 @@ dependencies = [
[[package]]
name = "cranelift-codegen-shared"
version = "0.59.0"
source = "git+https://github.com/bytecodealliance/wasmtime/#e2f6c0805231daa0524d7c770d11ced6dfe961a2"
version = "0.60.0"
source = "git+https://github.com/bytecodealliance/wasmtime/#1c55eb1a8bba9e59df604a0df2b6552dd54e76a7"
[[package]]
name = "cranelift-entity"
version = "0.59.0"
source = "git+https://github.com/bytecodealliance/wasmtime/#e2f6c0805231daa0524d7c770d11ced6dfe961a2"
version = "0.60.0"
source = "git+https://github.com/bytecodealliance/wasmtime/#1c55eb1a8bba9e59df604a0df2b6552dd54e76a7"
[[package]]
name = "cranelift-frontend"
version = "0.59.0"
source = "git+https://github.com/bytecodealliance/wasmtime/#e2f6c0805231daa0524d7c770d11ced6dfe961a2"
version = "0.60.0"
source = "git+https://github.com/bytecodealliance/wasmtime/#1c55eb1a8bba9e59df604a0df2b6552dd54e76a7"
dependencies = [
"cranelift-codegen",
"log",
@ -93,9 +99,10 @@ dependencies = [
[[package]]
name = "cranelift-module"
version = "0.59.0"
source = "git+https://github.com/bytecodealliance/wasmtime/#e2f6c0805231daa0524d7c770d11ced6dfe961a2"
version = "0.60.0"
source = "git+https://github.com/bytecodealliance/wasmtime/#1c55eb1a8bba9e59df604a0df2b6552dd54e76a7"
dependencies = [
"anyhow",
"cranelift-codegen",
"cranelift-entity",
"log",
@ -104,8 +111,8 @@ dependencies = [
[[package]]
name = "cranelift-native"
version = "0.59.0"
source = "git+https://github.com/bytecodealliance/wasmtime/#e2f6c0805231daa0524d7c770d11ced6dfe961a2"
version = "0.60.0"
source = "git+https://github.com/bytecodealliance/wasmtime/#1c55eb1a8bba9e59df604a0df2b6552dd54e76a7"
dependencies = [
"cranelift-codegen",
"raw-cpuid",
@ -114,8 +121,8 @@ dependencies = [
[[package]]
name = "cranelift-object"
version = "0.59.0"
source = "git+https://github.com/bytecodealliance/wasmtime/#e2f6c0805231daa0524d7c770d11ced6dfe961a2"
version = "0.60.0"
source = "git+https://github.com/bytecodealliance/wasmtime/#1c55eb1a8bba9e59df604a0df2b6552dd54e76a7"
dependencies = [
"cranelift-codegen",
"cranelift-module",
@ -126,8 +133,8 @@ dependencies = [
[[package]]
name = "cranelift-simplejit"
version = "0.59.0"
source = "git+https://github.com/bytecodealliance/wasmtime/#e2f6c0805231daa0524d7c770d11ced6dfe961a2"
version = "0.60.0"
source = "git+https://github.com/bytecodealliance/wasmtime/#1c55eb1a8bba9e59df604a0df2b6552dd54e76a7"
dependencies = [
"cranelift-codegen",
"cranelift-module",

View file

@ -6,9 +6,7 @@ pub fn get_clif_linkage(mono_item: MonoItem, linkage: RLinkage, visibility: Visi
match (linkage, visibility) {
(RLinkage::External, Visibility::Default) => Linkage::Export,
(RLinkage::Internal, Visibility::Default) => Linkage::Local,
// FIXME this should get external linkage, but hidden visibility,
// not internal linkage and default visibility
(RLinkage::External, Visibility::Hidden) => Linkage::Export,
(RLinkage::External, Visibility::Hidden) => Linkage::Hidden,
_ => panic!("{:?} = {:?} {:?}", mono_item, linkage, visibility),
}
}