Update faerie to 0.9.1

This commit is contained in:
Yury Delendik
2019-03-26 10:05:25 -05:00
committed by Dan Gohman
parent db0abe8431
commit 94ca967d0a
11 changed files with 16 additions and 35 deletions

View File

@@ -12,15 +12,8 @@ fn emit_vmcontext_init(
target_config: &TargetFrontendConfig,
) -> Result<(), String> {
let (data, table_relocs) = layout_vmcontext(module, target_config);
obj.declare_with(
"_vmcontext_init",
Decl::Data {
writable: false,
global: true,
},
data.to_vec(),
)
.map_err(|err| format!("{}", err))?;
obj.declare_with("_vmcontext_init", Decl::data().global(), data.to_vec())
.map_err(|err| format!("{}", err))?;
for reloc in table_relocs.iter() {
let target_name = format!("_table_{}", reloc.index);
obj.link(Link {