@@ -20,10 +20,9 @@ use rspirv::dr::{Module, Operand};
2020use rspirv:: spirv:: { Decoration , LinkageType , Word } ;
2121use rustc_abi:: { AddressSpace , HasDataLayout , TargetDataLayout } ;
2222use rustc_ast:: ast:: { InlineAsmOptions , InlineAsmTemplatePiece } ;
23- use rustc_codegen_ssa:: mir:: debuginfo:: VariableKind ;
2423use rustc_codegen_ssa:: traits:: {
2524 AsmCodegenMethods , BackendTypes , DebugInfoCodegenMethods , GlobalAsmOperandRef ,
26- MiscCodegenMethods ,
25+ MiscCodegenMethods , PacMetadata ,
2726} ;
2827use rustc_data_structures:: fx:: { FxHashMap , FxHashSet } ;
2928use rustc_hir:: def_id:: DefId ;
@@ -32,8 +31,7 @@ use rustc_middle::ty::layout::{HasTyCtxt, HasTypingEnv};
3231use rustc_middle:: ty:: { self , Instance , Ty , TyCtxt , TypingEnv } ;
3332use rustc_session:: Session ;
3433use rustc_span:: symbol:: Symbol ;
35- use rustc_span:: { BytePos , DUMMY_SP , SourceFile , Span } ;
36- use rustc_target:: callconv:: FnAbi ;
34+ use rustc_span:: { DUMMY_SP , Span } ;
3735use rustc_target:: spec:: { HasTargetSpec , Target , TargetTuple } ;
3836use std:: cell:: RefCell ;
3937use std:: collections:: BTreeSet ;
@@ -889,7 +887,7 @@ impl<'tcx> MiscCodegenMethods<'tcx> for CodegenCx<'tcx> {
889887 // NOTE(eddyb) see the comment on `SpirvValueKind::FnAddr`, this should
890888 // be fixed upstream, so we never see any "function pointer" values being
891889 // created just to perform direct calls.
892- fn get_fn_addr ( & self , instance : Instance < ' tcx > ) -> Self :: Value {
890+ fn get_fn_addr ( & self , instance : Instance < ' tcx > , _pac : Option < PacMetadata > ) -> Self :: Value {
893891 let function = self . get_fn ( instance) ;
894892 let span = self . tcx . def_span ( instance. def_id ( ) ) ;
895893
@@ -944,50 +942,6 @@ impl<'tcx> DebugInfoCodegenMethods<'tcx> for CodegenCx<'tcx> {
944942 ) {
945943 // Ignore.
946944 }
947-
948- fn dbg_create_lexical_block (
949- & self ,
950- _pos : BytePos ,
951- _parent_scope : Self :: DIScope ,
952- ) -> Self :: DIScope {
953- }
954-
955- fn dbg_location_clone_with_discriminator (
956- & self ,
957- _loc : Self :: DILocation ,
958- _discriminator : u32 ,
959- ) -> Option < Self :: DILocation > {
960- None
961- }
962-
963- fn dbg_scope_fn (
964- & self ,
965- _: Instance < ' tcx > ,
966- _: & FnAbi < ' tcx , Ty < ' tcx > > ,
967- _: Option < Self :: Function > ,
968- ) -> Self :: DIScope {
969- }
970-
971- fn dbg_loc ( & self , _: Self :: DIScope , _: Option < Self :: DILocation > , _: Span ) -> Self :: DILocation { }
972-
973- fn extend_scope_to_file (
974- & self ,
975- _scope_metadata : Self :: DIScope ,
976- _file : & SourceFile ,
977- ) -> Self :: DIScope {
978- }
979-
980- fn debuginfo_finalize ( & self ) { }
981-
982- fn create_dbg_var (
983- & self ,
984- _variable_name : Symbol ,
985- _variable_type : Ty < ' tcx > ,
986- _scope_metadata : Self :: DIScope ,
987- _variable_kind : VariableKind ,
988- _span : Span ,
989- ) -> Self :: DIVariable {
990- }
991945}
992946
993947impl < ' tcx > AsmCodegenMethods < ' tcx > for CodegenCx < ' tcx > {
0 commit comments