Skip to content

Commit 2d4484f

Browse files
committed
fixup! [bindings] Add global_set_metadata
Format code according to formatter requirements
1 parent 0bf3e74 commit 2d4484f

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

llvm/bindings/ocaml/llvm/llvm_ocaml.c

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
1515
|* *|
1616
\*===----------------------------------------------------------------------===*/
1717

18-
#include <assert.h>
19-
#include <stdlib.h>
20-
#include <string.h>
18+
#include "llvm_ocaml.h"
19+
#include "caml/callback.h"
20+
#include "caml/fail.h"
21+
#include "caml/memory.h"
2122
#include "llvm-c/Core.h"
2223
#include "llvm-c/Support.h"
2324
#include "llvm/Config/llvm-config.h"
24-
#include "caml/memory.h"
25-
#include "caml/fail.h"
26-
#include "caml/callback.h"
27-
#include "llvm_ocaml.h"
25+
#include <assert.h>
26+
#include <stdlib.h>
27+
#include <string.h>
2828

2929
#if OCAML_VERSION < 41200
3030
value caml_alloc_some(value v) {
@@ -1547,7 +1547,8 @@ value llvm_set_global_constant(value Flag, value GlobalVar) {
15471547
}
15481548

15491549
/* llvalue -> llmdkind -> llmetadata -> unit */
1550-
value llvm_global_set_metadata(value Value, value MetadataKind, value Metadata) {
1550+
value llvm_global_set_metadata(value Value, value MetadataKind,
1551+
value Metadata) {
15511552
LLVMGlobalSetMetadata(Value_val(Value), (unsigned int)Int_val(MetadataKind),
15521553
Metadata_val(Metadata));
15531554
return Val_unit;

0 commit comments

Comments
 (0)