Commit e2721f7 1 parent 21384c4 commit e2721f7 Copy full SHA for e2721f7
File tree 4 files changed +0
-17
lines changed
4 files changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,6 @@ module TargetData = struct
20
20
external add : t -> [<Llvm.PassManager .any ] Llvm.PassManager .t -> unit
21
21
= " llvm_targetdata_add"
22
22
external as_string : t -> string = " llvm_targetdata_as_string"
23
- external invalidate_struct_layout : t -> Llvm .lltype -> unit
24
- = " llvm_targetdata_invalidate_struct_layout"
25
23
external dispose : t -> unit = " llvm_targetdata_dispose"
26
24
end
27
25
Original file line number Diff line number Diff line change @@ -35,13 +35,6 @@ module TargetData : sig
35
35
See the constructor llvm::TargetData::TargetData. *)
36
36
external as_string : t -> string = " llvm_targetdata_as_string"
37
37
38
- (* * Struct layouts are speculatively cached. If a TargetDataRef is alive when
39
- types are being refined and removed, this method must be called whenever a
40
- struct type is removed to avoid a dangling pointer in this cache.
41
- See the method llvm::TargetData::InvalidateStructLayoutInfo. *)
42
- external invalidate_struct_layout : t -> Llvm .lltype -> unit
43
- = " llvm_targetdata_invalidate_struct_layout"
44
-
45
38
(* * Deallocates a TargetData.
46
39
See the destructor llvm::TargetData::~TargetData. *)
47
40
external dispose : t -> unit = " llvm_targetdata_dispose"
Original file line number Diff line number Diff line change @@ -37,13 +37,6 @@ CAMLprim value llvm_targetdata_as_string(LLVMTargetDataRef TD) {
37
37
return Copy;
38
38
}
39
39
40
- /* TargetData.t -> Llvm.lltype -> unit */
41
- CAMLprim value llvm_targetdata_invalidate_struct_layout (LLVMTargetDataRef TD,
42
- LLVMTypeRef Ty) {
43
- LLVMInvalidateStructLayout (TD, Ty);
44
- return Val_unit;
45
- }
46
-
47
40
/* TargetData.t -> unit */
48
41
CAMLprim value llvm_targetdata_dispose (LLVMTargetDataRef TD) {
49
42
LLVMDisposeTargetData (TD);
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ let test_target_data () =
37
37
let sty = struct_type context [| i32_type; i64_type |] in
38
38
39
39
ignore (TargetData. as_string td);
40
- ignore (TargetData. invalidate_struct_layout td sty);
41
40
ignore (byte_order td);
42
41
ignore (pointer_size td);
43
42
ignore (intptr_type td);
You can’t perform that action at this time.
0 commit comments