about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2025-09-19 14:44:54 +1000
committerZalathar <Zalathar@users.noreply.github.com>2025-09-19 14:44:54 +1000
commita6d261712ee546fc1fc1b7b7c0ee0782aa827b8b (patch)
treec882e9e04b1a56d4eaf068f67e3df8fc63fc0ce3 /compiler/rustc_llvm/llvm-wrapper
parentb1a9f231fea0459356f751ad6c1704b55f541118 (diff)
downloadrust-a6d261712ee546fc1fc1b7b7c0ee0782aa827b8b.tar.gz
rust-a6d261712ee546fc1fc1b7b7c0ee0782aa827b8b.zip
Use `LLVMDIBuilderGetOrCreateArray`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper')
-rw-r--r--compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
index de79c3e6861..b7878692176 100644
--- a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
+++ b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
@@ -1142,15 +1142,6 @@ extern "C" LLVMMetadataRef LLVMRustDIBuilderCreateVariable(
   }
 }
 
-extern "C" LLVMMetadataRef
-LLVMRustDIBuilderGetOrCreateArray(LLVMDIBuilderRef Builder,
-                                  LLVMMetadataRef *Ptr, unsigned Count) {
-  Metadata **DataValue = unwrap(Ptr);
-  return wrap(unwrap(Builder)
-                  ->getOrCreateArray(ArrayRef<Metadata *>(DataValue, Count))
-                  .get());
-}
-
 extern "C" void
 LLVMRustDIBuilderInsertDeclareAtEnd(LLVMDIBuilderRef Builder, LLVMValueRef V,
                                     LLVMMetadataRef VarInfo, uint64_t *AddrOps,