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-25 18:10:55 +1000
committerZalathar <Zalathar@users.noreply.github.com>2025-09-25 18:10:55 +1000
commit85018f09f67bd54868fe12a4632bbd637a474853 (patch)
tree0a49e6cf040a6af5a5ad9456177ca8d848f22031 /compiler/rustc_llvm/llvm-wrapper
parentae12bc21d8ec76bbb753d4da168e9b08e1b09ebf (diff)
downloadrust-85018f09f67bd54868fe12a4632bbd637a474853.tar.gz
rust-85018f09f67bd54868fe12a4632bbd637a474853.zip
Use `LLVMDisposeTargetMachine`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper')
-rw-r--r--compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
index 7518b40799b..013d68fa3e4 100644
--- a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
+++ b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
@@ -359,10 +359,6 @@ extern "C" LLVMTargetMachineRef LLVMRustCreateTargetMachine(
   return wrap(TM);
 }
 
-extern "C" void LLVMRustDisposeTargetMachine(LLVMTargetMachineRef TM) {
-  delete unwrap(TM);
-}
-
 // Unfortunately, the LLVM C API doesn't provide a way to create the
 // TargetLibraryInfo pass, so we use this method to do so.
 extern "C" void LLVMRustAddLibraryInfo(LLVMPassManagerRef PMR, LLVMModuleRef M,