diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-12-02 14:17:33 +0000 | 
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-03-17 14:08:09 +0000 | 
| commit | b754ef727ca87050a8d758fc44f524cfb4310eff (patch) | |
| tree | 0648cce2fba4274eb3b7cd6e88a789ce0eaa22f6 /compiler/rustc_codegen_llvm/src/context.rs | |
| parent | c0639ef8e4b4bf9feadb8bea49d4fe23ce9e8017 (diff) | |
| download | rust-b754ef727ca87050a8d758fc44f524cfb4310eff.tar.gz rust-b754ef727ca87050a8d758fc44f524cfb4310eff.zip | |
Remove implicit #[no_mangle] for #[rustc_std_internal_symbol]
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/context.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/context.rs | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/compiler/rustc_codegen_llvm/src/context.rs b/compiler/rustc_codegen_llvm/src/context.rs index 9f8ec0ea526..926445c780b 100644 --- a/compiler/rustc_codegen_llvm/src/context.rs +++ b/compiler/rustc_codegen_llvm/src/context.rs @@ -27,6 +27,7 @@ use rustc_session::config::{ }; use rustc_span::source_map::Spanned; use rustc_span::{DUMMY_SP, Span}; +use rustc_symbol_mangling::mangle_internal_symbol; use rustc_target::spec::{HasTargetSpec, RelocModel, SmallDataThresholdSupport, Target, TlsModel}; use smallvec::SmallVec; @@ -1199,7 +1200,7 @@ impl<'ll> CodegenCx<'ll, '_> { Some(def_id) => self.get_static(def_id), _ => { let ty = self.type_struct(&[self.type_ptr(), self.type_ptr()], false); - self.declare_global("rust_eh_catch_typeinfo", ty) + self.declare_global(&mangle_internal_symbol(self.tcx, "rust_eh_catch_typeinfo"), ty) } }; self.eh_catch_typeinfo.set(Some(eh_catch_typeinfo)); | 
