about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorklensy <klensy@users.noreply.github.com>2023-04-02 17:52:38 +0300
committerklensy <klensy@users.noreply.github.com>2023-04-04 15:12:35 +0300
commitc53a9faa6fdcdf8776646e837272ea0a85bf8179 (patch)
tree7e59c4b1bf5cb26a8379e63311a7804e54e3f9ff /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent7d6181e4d8e25d83d2fe6b868a313ff9942466cc (diff)
downloadrust-c53a9faa6fdcdf8776646e837272ea0a85bf8179.tar.gz
rust-c53a9faa6fdcdf8776646e837272ea0a85bf8179.zip
replace LLVMRustMetadataAsValue with LLVMMetadataAsValue
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
-rw-r--r--compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
index be8c960b864..b921573d1d2 100644
--- a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
+++ b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
@@ -750,10 +750,6 @@ extern "C" bool LLVMRustHasModuleFlag(LLVMModuleRef M, const char *Name,
   return unwrap(M)->getModuleFlag(StringRef(Name, Len)) != nullptr;
 }
 
-extern "C" LLVMValueRef LLVMRustMetadataAsValue(LLVMContextRef C, LLVMMetadataRef MD) {
-  return wrap(MetadataAsValue::get(*unwrap(C), unwrap(MD)));
-}
-
 extern "C" void LLVMRustGlobalAddMetadata(
     LLVMValueRef Global, unsigned Kind, LLVMMetadataRef MD) {
   unwrap<GlobalObject>(Global)->addMetadata(Kind, *unwrap<MDNode>(MD));