Skip to content

Commit 3862f62

Browse files
committed
Auto merge of #130389 - Luv-Ray:LLVMMDNodeInContext2, r=nikic
llvm: replace some deprecated functions `LLVMMDStringInContext` and `LLVMMDNodeInContext` are deprecated, replace them with `LLVMMDStringInContext2` and `LLVMMDNodeInContext2`. Also replace `Value` with `Metadata` in some function signatures for better consistency.
2 parents decad31 + 4cae366 commit 3862f62

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/builder.rs

+1
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,7 @@ impl<'a, 'gcc, 'tcx> Deref for Builder<'a, 'gcc, 'tcx> {
503503

504504
impl<'gcc, 'tcx> BackendTypes for Builder<'_, 'gcc, 'tcx> {
505505
type Value = <CodegenCx<'gcc, 'tcx> as BackendTypes>::Value;
506+
type Metadata = <CodegenCx<'gcc, 'tcx> as BackendTypes>::Metadata;
506507
type Function = <CodegenCx<'gcc, 'tcx> as BackendTypes>::Function;
507508
type BasicBlock = <CodegenCx<'gcc, 'tcx> as BackendTypes>::BasicBlock;
508509
type Type = <CodegenCx<'gcc, 'tcx> as BackendTypes>::Type;

src/context.rs

+1
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ impl<'gcc, 'tcx> CodegenCx<'gcc, 'tcx> {
414414

415415
impl<'gcc, 'tcx> BackendTypes for CodegenCx<'gcc, 'tcx> {
416416
type Value = RValue<'gcc>;
417+
type Metadata = RValue<'gcc>;
417418
type Function = RValue<'gcc>;
418419

419420
type BasicBlock = Block<'gcc>;

0 commit comments

Comments
 (0)