Skip to content

Commit 6469b6e

Browse files
committed
ocamlformat
1 parent 647a5f8 commit 6469b6e

File tree

12 files changed

+28
-25
lines changed

12 files changed

+28
-25
lines changed

backend/arm64/emit.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2122,7 +2122,8 @@ let begin_assembly _unix =
21222122
Asm_targets.Asm_label.initialize ~new_label:(fun () ->
21232123
Cmm.new_label () |> Label.to_int);
21242124
let asm_line_buffer = Buffer.create 200 in
2125-
D.initialize ~big_endian:Arch.big_endian ~emit_assembly_comments:!Flambda_backend_flags.dasm_comments ~emit:(fun d ->
2125+
D.initialize ~big_endian:Arch.big_endian
2126+
~emit_assembly_comments:!Flambda_backend_flags.dasm_comments ~emit:(fun d ->
21262127
Buffer.clear asm_line_buffer;
21272128
D.Directive.print asm_line_buffer d;
21282129
Buffer.add_string asm_line_buffer "\n";

backend/asm_targets/asm_directives_dwarf.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
(* *)
1313
(**************************************************************************)
1414

15-
1615
type t = unit
1716

1817
let build_asm_directives () = ()

backend/asm_targets/asm_directives_dwarf.mli

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
(* *)
1313
(**************************************************************************)
1414

15-
1615
type t
1716

1817
val build_asm_directives : unit -> t

backend/asm_targets/asm_directives_new.ml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ let big_endian () =
5353
| None -> not_initialized ()
5454
| Some big_endian -> big_endian
5555

56-
5756
let emit_comments () =
5857
let emit_assembly_comments =
5958
match !emit_assembly_comments_ref with
6059
| None -> not_initialized ()
6160
| Some emit_assembly_comments -> emit_assembly_comments
62-
in emit_assembly_comments && !Clflags.keep_asm_file
61+
in
62+
emit_assembly_comments && !Clflags.keep_asm_file
6363

6464
type symbol_type =
6565
| Function
@@ -197,7 +197,6 @@ module Directive = struct
197197

198198
let bprintf = Printf.bprintf
199199

200-
201200
(* CR sspies: This code is a duplicate with [emit_string_literal] in
202201
[emitaux.ml]. Hopefully, we can deduplicate this soon. *)
203202
let string_of_string_literal s =
@@ -443,8 +442,7 @@ type expr =
443442
| Symbol of Asm_symbol.t
444443
| Add of expr * expr
445444
| Sub of expr * expr
446-
| Variable of string
447-
(** macOS only *)
445+
| Variable of string (** macOS only *)
448446

449447
let rec lower_expr (cst : expr) : Directive.Constant.t =
450448
match cst with
@@ -708,7 +706,8 @@ let file ~file_num ~file_name () =
708706
in
709707
emit_non_masm (File { file_num; filename = file_name })
710708

711-
let initialize ~big_endian ~emit_assembly_comments ~(emit : Directive.t -> unit) =
709+
let initialize ~big_endian ~emit_assembly_comments ~(emit : Directive.t -> unit)
710+
=
712711
big_endian_ref := Some big_endian;
713712
emit_ref := Some emit;
714713
emit_assembly_comments_ref := Some emit_assembly_comments;
@@ -810,7 +809,9 @@ let emit_cached_strings () =
810809
int8 Int8.zero)
811810
!cached_strings;
812811
cached_strings := Cached_string.Map.empty;
813-
Option.iter (switch_to_section ~emit_label_on_first_occurrence:false) old_dwarf_section
812+
Option.iter
813+
(switch_to_section ~emit_label_on_first_occurrence:false)
814+
old_dwarf_section
814815

815816
let mark_stack_non_executable () =
816817
let current_section = current_section () in

backend/asm_targets/asm_directives_new.mli

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,11 @@ end
414414
If Dwarf debug information is supposed to be produced,
415415
additionally [debug_header] should be called, which
416416
will switch to the text section after emitting some debug section labels. *)
417-
val initialize : big_endian:bool -> emit_assembly_comments:bool -> emit:(Directive.t -> unit) -> unit
417+
val initialize :
418+
big_endian:bool ->
419+
emit_assembly_comments:bool ->
420+
emit:(Directive.t -> unit) ->
421+
unit
418422

419423
val debug_header : get_file_num:(string -> int) -> unit
420424

backend/debug/dwarf/dwarf_high/dwarf_world.mli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ open Asm_targets
1919
open Dwarf_low
2020

2121
val emit :
22-
asm_directives:(Asm_directives_dwarf.t) ->
22+
asm_directives:Asm_directives_dwarf.t ->
2323
compilation_unit_proto_die:Proto_die.t ->
2424
compilation_unit_header_label:Asm_label.t ->
2525
debug_loc_table:Debug_loc_table.t ->
@@ -31,7 +31,7 @@ val emit :
3131
unit
3232

3333
val emit_delayed :
34-
asm_directives:(Asm_directives_dwarf.t) ->
34+
asm_directives:Asm_directives_dwarf.t ->
3535
basic_block_sections:bool ->
3636
binary_backend_available:bool ->
3737
unit

backend/debug/dwarf/dwarf_low/address_index.mli

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ include Identifiable.S with type t := t
2828

2929
val size : t -> Dwarf_int.t
3030

31-
val emit :
32-
asm_directives:(Asm_directives_dwarf.t) -> ?comment:string -> t -> unit
31+
val emit : asm_directives:Asm_directives_dwarf.t -> ?comment:string -> t -> unit
3332

3433
module Pair : Identifiable.S with type t = t * t

backend/debug/dwarf/dwarf_low/dwarf_emittable.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module type S = sig
2424
val size : t -> Dwarf_int.t
2525

2626
(** Emit assembler directives to describe the given entity. *)
27-
val emit : asm_directives:(Asm_directives_dwarf.t) -> t -> unit
27+
val emit : asm_directives:Asm_directives_dwarf.t -> t -> unit
2828
end
2929

3030
module type S1_ignore = sig
@@ -34,5 +34,5 @@ module type S1_ignore = sig
3434
val size : _ t -> Dwarf_int.t
3535

3636
(** Emit assembler directives to describe the given entity. *)
37-
val emit : asm_directives:(Asm_directives_dwarf.t) -> _ t -> unit
37+
val emit : asm_directives:Asm_directives_dwarf.t -> _ t -> unit
3838
end

backend/debug/dwarf/dwarf_low/dwarf_int.mli

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,4 @@ val succ : t -> t
6767

6868
val size : t -> t
6969

70-
val emit :
71-
asm_directives:(Asm_directives_dwarf.t) -> ?comment:string -> t -> unit
70+
val emit : asm_directives:Asm_directives_dwarf.t -> ?comment:string -> t -> unit

backend/debug/dwarf/dwarf_low/dwarf_operator.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ module Size = Make (struct
740740
end)
741741

742742
module Emit = Make (struct
743-
type param = (Asm_directives_dwarf.t)
743+
type param = Asm_directives_dwarf.t
744744

745745
type result = unit
746746

0 commit comments

Comments
 (0)