diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-08-15 09:37:24 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-08-15 10:04:04 +0000 |
| commit | 460519a7f509756d07dcf187e671a11fde7b3fca (patch) | |
| tree | b1c5a729150f98f1480bef6de09099346110d70a /compiler/rustc_codegen_llvm/src/attributes.rs | |
| parent | f3ef465ffb5cd3da61176ac67e7051eb55b62095 (diff) | |
| download | rust-460519a7f509756d07dcf187e671a11fde7b3fca.tar.gz rust-460519a7f509756d07dcf187e671a11fde7b3fca.zip | |
Merge link_name and export_name
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/attributes.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/attributes.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/attributes.rs b/compiler/rustc_codegen_llvm/src/attributes.rs index c548f467583..35cc013b852 100644 --- a/compiler/rustc_codegen_llvm/src/attributes.rs +++ b/compiler/rustc_codegen_llvm/src/attributes.rs @@ -513,7 +513,7 @@ pub(crate) fn llfn_attrs_from_instance<'ll, 'tcx>( to_add.push(llvm::CreateAttrStringValue(cx.llcx, "wasm-import-module", module)); let name = - codegen_fn_attrs.link_name.unwrap_or_else(|| cx.tcx.item_name(instance.def_id())); + codegen_fn_attrs.symbol_name.unwrap_or_else(|| cx.tcx.item_name(instance.def_id())); let name = name.as_str(); to_add.push(llvm::CreateAttrStringValue(cx.llcx, "wasm-import-name", name)); } |
