Remove implicit #[no_mangle] for #[rustc_std_internal_symbol]
This commit is contained in:
parent
c0639ef8e4
commit
b754ef727c
17 changed files with 95 additions and 49 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue