Skip to content

Commit 584855e

Browse files
debuginfo: Refactor debuginfo generation for types -- Rename DebugInfoMethods::create_vtable_metadata() to DebugInfoMethods::create_vtable_debuginfo()
1 parent 9580a71 commit 584855e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Diff for: compiler/rustc_codegen_gcc/src/debuginfo.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ impl<'a, 'gcc, 'tcx> DebugInfoBuilderMethods for Builder<'a, 'gcc, 'tcx> {
3131
}
3232

3333
impl<'gcc, 'tcx> DebugInfoMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
34-
fn create_vtable_metadata(&self, _ty: Ty<'tcx>, _trait_ref: Option<PolyExistentialTraitRef<'tcx>>, _vtable: Self::Value) {
34+
fn create_vtable_debuginfo(&self, _ty: Ty<'tcx>, _trait_ref: Option<PolyExistentialTraitRef<'tcx>>, _vtable: Self::Value) {
3535
// TODO(antoyo)
3636
}
3737

Diff for: compiler/rustc_codegen_llvm/src/debuginfo/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ impl<'ll, 'tcx> DebugInfoMethods<'tcx> for CodegenCx<'ll, 'tcx> {
555555
unsafe { llvm::LLVMRustDIBuilderCreateDebugLocation(line, col, scope, inlined_at) }
556556
}
557557

558-
fn create_vtable_metadata(
558+
fn create_vtable_debuginfo(
559559
&self,
560560
ty: Ty<'tcx>,
561561
trait_ref: Option<ty::PolyExistentialTraitRef<'tcx>>,

Diff for: compiler/rustc_codegen_ssa/src/meth.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ pub fn get_vtable<'tcx, Cx: CodegenMethods<'tcx>>(
7878
let align = cx.data_layout().pointer_align.abi;
7979
let vtable = cx.static_addr_of(vtable_const, align, Some("vtable"));
8080

81-
cx.create_vtable_metadata(ty, trait_ref, vtable);
81+
cx.create_vtable_debuginfo(ty, trait_ref, vtable);
8282
cx.vtables().borrow_mut().insert((ty, trait_ref), vtable);
8383
vtable
8484
}

Diff for: compiler/rustc_codegen_ssa/src/traits/debuginfo.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use rustc_target::abi::call::FnAbi;
77
use rustc_target::abi::Size;
88

99
pub trait DebugInfoMethods<'tcx>: BackendTypes {
10-
fn create_vtable_metadata(
10+
fn create_vtable_debuginfo(
1111
&self,
1212
ty: Ty<'tcx>,
1313
trait_ref: Option<PolyExistentialTraitRef<'tcx>>,

0 commit comments

Comments
 (0)