From c8f030416385e22c4745abbd9ac52c9a15a7ac9c Mon Sep 17 00:00:00 2001 From: Chinedu Francis Nwafili Date: Wed, 25 Jul 2018 07:24:39 -0400 Subject: [PATCH] Fix LLVM ERROR fixes #545 --- crates/backend/src/codegen.rs | 2 +- crates/cli-support/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/backend/src/codegen.rs b/crates/backend/src/codegen.rs index 0e05685b3f8..e6f30b51750 100644 --- a/crates/backend/src/codegen.rs +++ b/crates/backend/src/codegen.rs @@ -76,7 +76,7 @@ impl ToTokens for ast::Program { (quote! { #[allow(non_upper_case_globals)] - #[link_section = "__wasm_bindgen_unstable"] + #[link_section = "__wasm_bindgen,unstable"] #[doc(hidden)] pub static #generated_static_name: [u8; #generated_static_length] = *#generated_static_value; diff --git a/crates/cli-support/src/lib.rs b/crates/cli-support/src/lib.rs index a0f184abfb2..1ed457f7ba0 100644 --- a/crates/cli-support/src/lib.rs +++ b/crates/cli-support/src/lib.rs @@ -287,7 +287,7 @@ fn extract_programs(module: &mut Module) -> Result, Error> Section::Custom(ref s) => s, _ => continue, }; - if custom.name() != "__wasm_bindgen_unstable" { + if custom.name() != "__wasm_bindgen,unstable" { continue; } to_remove.push(i);