Skip to content

Commit 741e1e2

Browse files
committed
Remove unused LLVMRustDIBuilder(Create|Dispose)
These should have been removed earlier, when we switched to the corresponding LLVM-C bindings.
1 parent 272d336 commit 741e1e2

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -985,14 +985,6 @@ extern "C" void LLVMRustGlobalAddMetadata(LLVMValueRef Global, unsigned Kind,
985985
unwrap<GlobalObject>(Global)->addMetadata(Kind, *unwrap<MDNode>(MD));
986986
}
987987

988-
extern "C" LLVMDIBuilderRef LLVMRustDIBuilderCreate(LLVMModuleRef M) {
989-
return wrap(new DIBuilder(*unwrap(M)));
990-
}
991-
992-
extern "C" void LLVMRustDIBuilderDispose(LLVMDIBuilderRef Builder) {
993-
delete unwrap(Builder);
994-
}
995-
996988
extern "C" LLVMMetadataRef LLVMRustDIBuilderCreateCompileUnit(
997989
LLVMDIBuilderRef Builder, unsigned Lang, LLVMMetadataRef FileRef,
998990
const char *Producer, size_t ProducerLen, bool isOptimized,

0 commit comments

Comments
 (0)