@@ -141,8 +141,8 @@ struct CodegenCx<'tcx, M: Module> {
141141}
142142
143143impl < ' tcx , M : Module > CodegenCx < ' tcx , M > {
144- fn new ( tcx : TyCtxt < ' tcx > , module : M , debug_info : bool ) -> Self {
145- let unwind_context = UnwindContext :: new ( tcx, module. isa ( ) ) ;
144+ fn new ( tcx : TyCtxt < ' tcx > , module : M , debug_info : bool , pic_eh_frame : bool ) -> Self {
145+ let unwind_context = UnwindContext :: new ( tcx, module. isa ( ) , pic_eh_frame ) ;
146146 let debug_context = if debug_info {
147147 Some ( DebugContext :: new ( tcx, module. isa ( ) ) )
148148 } else {
@@ -250,17 +250,13 @@ fn target_triple(sess: &Session) -> target_lexicon::Triple {
250250 sess. target . llvm_target . parse ( ) . unwrap ( )
251251}
252252
253- fn build_isa ( sess : & Session , enable_pic : bool ) -> Box < dyn isa:: TargetIsa + ' static > {
253+ fn build_isa ( sess : & Session ) -> Box < dyn isa:: TargetIsa + ' static > {
254254 use target_lexicon:: BinaryFormat ;
255255
256256 let target_triple = crate :: target_triple ( sess) ;
257257
258258 let mut flags_builder = settings:: builder ( ) ;
259- if enable_pic {
260- flags_builder. enable ( "is_pic" ) . unwrap ( ) ;
261- } else {
262- flags_builder. set ( "is_pic" , "false" ) . unwrap ( ) ;
263- }
259+ flags_builder. enable ( "is_pic" ) . unwrap ( ) ;
264260 flags_builder. set ( "enable_probestack" , "false" ) . unwrap ( ) ; // __cranelift_probestack is not provided
265261 flags_builder
266262 . set (
0 commit comments