diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2025-09-20 12:48:48 +1000 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2025-09-20 12:48:48 +1000 |
| commit | 741e1e2ec79b6819759274117947bafe75189b2a (patch) | |
| tree | 28ef74a84a178893d95539f29263fc0150f88391 | |
| parent | 272d336f0f89610bc18bc276b5f89dc163c69d24 (diff) | |
| download | rust-741e1e2ec79b6819759274117947bafe75189b2a.tar.gz rust-741e1e2ec79b6819759274117947bafe75189b2a.zip | |
Remove unused `LLVMRustDIBuilder(Create|Dispose)`
These should have been removed earlier, when we switched to the corresponding LLVM-C bindings.
| -rw-r--r-- | compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp index c7fa26f18e1..b8db9fac90f 100644 --- a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp +++ b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp @@ -985,14 +985,6 @@ extern "C" void LLVMRustGlobalAddMetadata(LLVMValueRef Global, unsigned Kind, unwrap<GlobalObject>(Global)->addMetadata(Kind, *unwrap<MDNode>(MD)); } -extern "C" LLVMDIBuilderRef LLVMRustDIBuilderCreate(LLVMModuleRef M) { - return wrap(new DIBuilder(*unwrap(M))); -} - -extern "C" void LLVMRustDIBuilderDispose(LLVMDIBuilderRef Builder) { - delete unwrap(Builder); -} - extern "C" LLVMMetadataRef LLVMRustDIBuilderCreateCompileUnit( LLVMDIBuilderRef Builder, unsigned Lang, LLVMMetadataRef FileRef, const char *Producer, size_t ProducerLen, bool isOptimized, |
