about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/traits/misc.rs
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-03-30 12:01:57 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-06-21 19:26:06 +0000
commite9ea57814768cdae0b36065a731009afa7e36f31 (patch)
treed40fd064dc38fbbb95320f16b5aa52133ae75c9c /compiler/rustc_codegen_ssa/src/traits/misc.rs
parent5ced3dad5752cc9423a19e9a5aafad6e12ed3063 (diff)
downloadrust-e9ea57814768cdae0b36065a731009afa7e36f31.tar.gz
rust-e9ea57814768cdae0b36065a731009afa7e36f31.zip
Move vcall_visibility_metadata optimization hint out of a debuginfo generation method
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/traits/misc.rs')
-rw-r--r--compiler/rustc_codegen_ssa/src/traits/misc.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_ssa/src/traits/misc.rs b/compiler/rustc_codegen_ssa/src/traits/misc.rs
index 04e2b8796c4..af3a9989604 100644
--- a/compiler/rustc_codegen_ssa/src/traits/misc.rs
+++ b/compiler/rustc_codegen_ssa/src/traits/misc.rs
@@ -9,6 +9,13 @@ pub trait MiscMethods<'tcx>: BackendTypes {
     fn vtables(
         &self,
     ) -> &RefCell<FxHashMap<(Ty<'tcx>, Option<ty::PolyExistentialTraitRef<'tcx>>), Self::Value>>;
+    fn apply_vcall_visibility_metadata(
+        &self,
+        _ty: Ty<'tcx>,
+        _poly_trait_ref: Option<ty::PolyExistentialTraitRef<'tcx>>,
+        _vtable: Self::Value,
+    ) {
+    }
     fn check_overflow(&self) -> bool;
     fn get_fn(&self, instance: Instance<'tcx>) -> Self::Function;
     fn get_fn_addr(&self, instance: Instance<'tcx>) -> Self::Value;