about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-09-24 12:07:48 +0000
committerbors <bors@rust-lang.org>2024-09-24 12:07:48 +0000
commit3862f62474f28432b2ec8b57d5d8375c6b93c990 (patch)
tree58f8ee9e55c2b86d6135cbd7d4832a7989794698
parentdecad31d94428ae77c94c15295414060b7f542d8 (diff)
parent4cae3667844c8c3a2a35564f16f1992042743abd (diff)
downloadrust-3862f62474f28432b2ec8b57d5d8375c6b93c990.tar.gz
rust-3862f62474f28432b2ec8b57d5d8375c6b93c990.zip
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.
-rw-r--r--src/builder.rs1
-rw-r--r--src/context.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/builder.rs b/src/builder.rs
index 2b5c39a4d16..b6873304382 100644
--- a/src/builder.rs
+++ b/src/builder.rs
@@ -503,6 +503,7 @@ impl<'a, 'gcc, 'tcx> Deref for Builder<'a, 'gcc, 'tcx> {
 
 impl<'gcc, 'tcx> BackendTypes for Builder<'_, 'gcc, 'tcx> {
     type Value = <CodegenCx<'gcc, 'tcx> as BackendTypes>::Value;
+    type Metadata = <CodegenCx<'gcc, 'tcx> as BackendTypes>::Metadata;
     type Function = <CodegenCx<'gcc, 'tcx> as BackendTypes>::Function;
     type BasicBlock = <CodegenCx<'gcc, 'tcx> as BackendTypes>::BasicBlock;
     type Type = <CodegenCx<'gcc, 'tcx> as BackendTypes>::Type;
diff --git a/src/context.rs b/src/context.rs
index 6542677af67..caccf8296a2 100644
--- a/src/context.rs
+++ b/src/context.rs
@@ -414,6 +414,7 @@ impl<'gcc, 'tcx> CodegenCx<'gcc, 'tcx> {
 
 impl<'gcc, 'tcx> BackendTypes for CodegenCx<'gcc, 'tcx> {
     type Value = RValue<'gcc>;
+    type Metadata = RValue<'gcc>;
     type Function = RValue<'gcc>;
 
     type BasicBlock = Block<'gcc>;