diff options
| author | Michael Woerister <michaelwoerister@posteo> | 2022-03-14 17:18:30 +0100 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo> | 2022-03-14 17:25:24 +0100 |
| commit | 584855e03d5b42d34cc259ab4ef3d01a637ad1c6 (patch) | |
| tree | 02e0b9f9ac9d42154b052dfdc1de4d623652aeff /compiler/rustc_codegen_ssa | |
| parent | 9580a7115d2d75514f0b329a29fafaa3796bd950 (diff) | |
| download | rust-584855e03d5b42d34cc259ab4ef3d01a637ad1c6.tar.gz rust-584855e03d5b42d34cc259ab4ef3d01a637ad1c6.zip | |
debuginfo: Refactor debuginfo generation for types -- Rename DebugInfoMethods::create_vtable_metadata() to DebugInfoMethods::create_vtable_debuginfo()
Diffstat (limited to 'compiler/rustc_codegen_ssa')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/meth.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/traits/debuginfo.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/meth.rs b/compiler/rustc_codegen_ssa/src/meth.rs index 6ab429669c8..00f101595f2 100644 --- a/compiler/rustc_codegen_ssa/src/meth.rs +++ b/compiler/rustc_codegen_ssa/src/meth.rs @@ -78,7 +78,7 @@ pub fn get_vtable<'tcx, Cx: CodegenMethods<'tcx>>( let align = cx.data_layout().pointer_align.abi; let vtable = cx.static_addr_of(vtable_const, align, Some("vtable")); - cx.create_vtable_metadata(ty, trait_ref, vtable); + cx.create_vtable_debuginfo(ty, trait_ref, vtable); cx.vtables().borrow_mut().insert((ty, trait_ref), vtable); vtable } diff --git a/compiler/rustc_codegen_ssa/src/traits/debuginfo.rs b/compiler/rustc_codegen_ssa/src/traits/debuginfo.rs index e700afc448f..f310789d144 100644 --- a/compiler/rustc_codegen_ssa/src/traits/debuginfo.rs +++ b/compiler/rustc_codegen_ssa/src/traits/debuginfo.rs @@ -7,7 +7,7 @@ use rustc_target::abi::call::FnAbi; use rustc_target::abi::Size; pub trait DebugInfoMethods<'tcx>: BackendTypes { - fn create_vtable_metadata( + fn create_vtable_debuginfo( &self, ty: Ty<'tcx>, trait_ref: Option<PolyExistentialTraitRef<'tcx>>, |
