File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,7 @@ function Instruction(ref::API.LLVMValueRef)
33
33
return T (ref)
34
34
end
35
35
36
- Instruction (inst:: Instruction ) =
37
- Instruction (API. LLVMInstructionClone (inst))
36
+ Base. copy (inst:: Instruction ) = Instruction (API. LLVMInstructionClone (inst))
38
37
39
38
unsafe_delete! (:: BasicBlock , inst:: Instruction ) =
40
39
API. LLVMInstructionEraseFromParent (inst)
Original file line number Diff line number Diff line change 24
24
Module (name:: String ) =
25
25
mark_alloc (Module (API. LLVMModuleCreateWithNameInContext (name, context ())))
26
26
27
- Module (mod:: Module ) = mark_alloc (Module (API. LLVMCloneModule (mod)))
28
- Base. copy (mod:: Module ) = Module (mod)
27
+ Base. copy (mod:: Module ) = mark_alloc (Module (API. LLVMCloneModule (mod)))
29
28
30
29
dispose (mod:: Module ) = mark_dispose (API. LLVMDisposeModule, mod)
31
30
Original file line number Diff line number Diff line change @@ -25,3 +25,6 @@ Base.@deprecate_binding ValueMetadataDict LLVM.InstructionMetadataDict
25
25
SyncScope (syncscope)), false )
26
26
27
27
@deprecate Base. size (vectyp:: VectorType ) length (vectyp) false
28
+
29
+ @deprecate Module (mod:: Module ) copy (mod) false
30
+ @deprecate Instruction (inst:: Instruction ) copy (inst) false
You can’t perform that action at this time.
0 commit comments