Skip to content

Commit 093469a

Browse files
authored
Add missing delete! deprecations. (#471)
1 parent 067925b commit 093469a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/deprecated.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
Base.@deprecate_binding ValueMetadataDict LLVM.InstructionMetadataDict
1111

12-
1312
@deprecate(fence!(builder::IRBuilder, ordering::API.LLVMAtomicOrdering, syncscope::String,
1413
Name::String=""),
1514
fence!(builder, ordering, SyncScope(syncscope), Name), false)
@@ -29,6 +28,9 @@ Base.@deprecate_binding ValueMetadataDict LLVM.InstructionMetadataDict
2928
@deprecate Module(mod::Module) copy(mod) false
3029
@deprecate Instruction(inst::Instruction) copy(inst) false
3130

31+
@deprecate Base.delete!(::Function, bb::BasicBlock) remove!(bb) false
32+
@deprecate Base.delete!(::BasicBlock, inst::Instruction) remove!(inst) false
33+
3234
@deprecate unsafe_delete!(::Module, gv::GlobalVariable) erase!(gv)
3335
@deprecate unsafe_delete!(::Module, f::Function) erase!(f)
3436
@deprecate unsafe_delete!(::Function, bb::BasicBlock) erase!(bb)

0 commit comments

Comments
 (0)