@@ -8,7 +8,7 @@ use std::{env, io};
88use rand:: { RngCore , rng} ;
99use rustc_data_structures:: base_n:: { CASE_INSENSITIVE , ToBaseN } ;
1010use rustc_data_structures:: flock;
11- use rustc_data_structures:: fx:: { FxHashMap , FxIndexSet } ;
11+ use rustc_data_structures:: fx:: { FxHashMap , FxHashSet , FxIndexSet } ;
1212use rustc_data_structures:: profiling:: { SelfProfiler , SelfProfilerRef } ;
1313use rustc_data_structures:: sync:: { DynSend , DynSync , Lock , MappedReadGuard , ReadGuard , RwLock } ;
1414use rustc_errors:: annotate_snippet_emitter_writer:: AnnotateSnippetEmitter ;
@@ -154,6 +154,10 @@ pub struct Session {
154154 /// preserved with a flag like `-C save-temps`, since these files may be
155155 /// hard linked.
156156 pub invocation_temp : Option < String > ,
157+
158+ /// The names of intrinsics that the current codegen backend replaces
159+ /// with its own implementations.
160+ pub replaced_intrinsics : FxHashSet < Symbol > ,
157161}
158162
159163#[ derive( Clone , Copy ) ]
@@ -1091,6 +1095,7 @@ pub fn build_session(
10911095 target_filesearch,
10921096 host_filesearch,
10931097 invocation_temp,
1098+ replaced_intrinsics : FxHashSet :: default ( ) , // filled by `run_compiler`
10941099 } ;
10951100
10961101 validate_commandline_args_with_session_available ( & sess) ;
0 commit comments