Skip to content

Commit 75b272b

Browse files
lynzrandalan-j-hu
andauthored
fixup! [bindings][test] Add test for global_set_metadata
Fix typo and formats Co-authored-by: Alan <[email protected]>
1 parent 4b1c337 commit 75b272b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

llvm/bindings/ocaml/llvm/llvm.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,8 @@ external global_copy_all_metadata : llvalue -> (llmdkind * llmetadata) array
700700
external is_global_constant : llvalue -> bool = "llvm_is_global_constant"
701701
external set_global_constant : bool -> llvalue -> unit
702702
= "llvm_set_global_constant"
703-
external global_set_metadata : llvalue -> llmdkind -> llmetadata -> unit = "llvm_global_set_metadata"
703+
external global_set_metadata : llvalue -> llmdkind -> llmetadata -> unit
704+
= "llvm_global_set_metadata"
704705

705706
(*--... Operations on global variables .....................................--*)
706707
external declare_global : lltype -> string -> llmodule -> llvalue

llvm/test/Bindings/OCaml/core.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ let test_global_values () =
439439
(* CHECK: GVal07{{.*}}!test !{{.*}}
440440
* See metadata check at the end of the file.
441441
*)
442-
group "metdata";
442+
group "metadata";
443443
let g = define_global "GVal07" zero32 m in
444444
let md_string = mdstring context "global test metadata" in
445445
let md_node = mdnode context [| zero32; md_string |] |> value_as_metadata in

0 commit comments

Comments
 (0)