File tree 10 files changed +47
-11
lines changed
10 files changed +47
-11
lines changed Original file line number Diff line number Diff line change
1
+ (* *************************************************************************)
2
+ (* *)
3
+ (* OCaml *)
4
+ (* *)
5
+ (* Simon Spies, Jane Street Europe *)
6
+ (* *)
7
+ (* Copyright 2025 Jane Street Group LLC *)
8
+ (* *)
9
+ (* All rights reserved. This file is distributed under the terms of *)
10
+ (* the GNU Lesser General Public License version 2.1, with the *)
11
+ (* special exception on linking described in the file LICENSE. *)
12
+ (* *)
13
+ (* *************************************************************************)
14
+
15
+
16
+ type t = unit
17
+
18
+ let build_asm_directives () = ()
Original file line number Diff line number Diff line change
1
+ (* *************************************************************************)
2
+ (* *)
3
+ (* OCaml *)
4
+ (* *)
5
+ (* Simon Spies, Jane Street Europe *)
6
+ (* *)
7
+ (* Copyright 2025 Jane Street Group LLC *)
8
+ (* *)
9
+ (* All rights reserved. This file is distributed under the terms of *)
10
+ (* the GNU Lesser General Public License version 2.1, with the *)
11
+ (* special exception on linking described in the file LICENSE. *)
12
+ (* *)
13
+ (* *************************************************************************)
14
+
15
+
16
+ type t
17
+
18
+ val build_asm_directives : unit -> t
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ open Asm_targets
19
19
open Dwarf_low
20
20
21
21
val emit :
22
- asm_directives :(module Asm_directives .S ) ->
22
+ asm_directives :(Asm_directives_dwarf . t ) ->
23
23
compilation_unit_proto_die :Proto_die .t ->
24
24
compilation_unit_header_label :Asm_label .t ->
25
25
debug_loc_table :Debug_loc_table .t ->
@@ -31,7 +31,7 @@ val emit :
31
31
unit
32
32
33
33
val emit_delayed :
34
- asm_directives :(module Asm_directives .S ) ->
34
+ asm_directives :(Asm_directives_dwarf . t ) ->
35
35
basic_block_sections :bool ->
36
36
binary_backend_available :bool ->
37
37
unit
Original file line number Diff line number Diff line change @@ -29,6 +29,6 @@ include Identifiable.S with type t := t
29
29
val size : t -> Dwarf_int .t
30
30
31
31
val emit :
32
- asm_directives :(module Asm_directives .S ) -> ?comment : string -> t -> unit
32
+ asm_directives :(Asm_directives_dwarf . t ) -> ?comment : string -> t -> unit
33
33
34
34
module Pair : Identifiable .S with type t = t * t
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ module type S = sig
24
24
val size : t -> Dwarf_int .t
25
25
26
26
(* * Emit assembler directives to describe the given entity. *)
27
- val emit : asm_directives :(module Asm_directives .S ) -> t -> unit
27
+ val emit : asm_directives :(Asm_directives_dwarf . t ) -> t -> unit
28
28
end
29
29
30
30
module type S1_ignore = sig
@@ -34,5 +34,5 @@ module type S1_ignore = sig
34
34
val size : _ t -> Dwarf_int .t
35
35
36
36
(* * Emit assembler directives to describe the given entity. *)
37
- val emit : asm_directives :(module Asm_directives .S ) -> _ t -> unit
37
+ val emit : asm_directives :(Asm_directives_dwarf . t ) -> _ t -> unit
38
38
end
Original file line number Diff line number Diff line change @@ -68,4 +68,4 @@ val succ : t -> t
68
68
val size : t -> t
69
69
70
70
val emit :
71
- asm_directives :(module Asm_directives .S ) -> ?comment : string -> t -> unit
71
+ asm_directives :(Asm_directives_dwarf . t ) -> ?comment : string -> t -> unit
Original file line number Diff line number Diff line change @@ -740,7 +740,7 @@ module Size = Make (struct
740
740
end )
741
741
742
742
module Emit = Make (struct
743
- type param = (module Asm_directives .S )
743
+ type param = (Asm_directives_dwarf .t )
744
744
745
745
type result = unit
746
746
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ module L = Linear
24
24
25
25
type t =
26
26
{ state : DS .t ;
27
- asm_directives : ( module Asm_directives .S ) ;
27
+ asm_directives : Asm_directives_dwarf .t ;
28
28
get_file_id : string -> int ;
29
29
mutable emitted : bool ;
30
30
mutable emitted_delayed : bool
Original file line number Diff line number Diff line change 26
26
val create :
27
27
sourcefile :string ->
28
28
unit_name :Ident .t ->
29
- asm_directives :(module Asm_directives .S ) ->
29
+ asm_directives :(Asm_directives_dwarf . t ) ->
30
30
get_file_id :(string -> int ) ->
31
31
code_begin :Asm_symbol .t ->
32
32
code_end :Asm_symbol .t ->
Original file line number Diff line number Diff line change @@ -557,11 +557,11 @@ module Dwarf_helpers = struct
557
557
558
558
let sourcefile_for_dwarf = ref None
559
559
560
- let begin_dwarf ~build_asm_directives ~ code_begin ~code_end ~file_emitter =
560
+ let begin_dwarf ~code_begin ~code_end ~file_emitter =
561
561
match ! sourcefile_for_dwarf with
562
562
| None -> ()
563
563
| Some sourcefile ->
564
- let asm_directives = build_asm_directives () in
564
+ let asm_directives = Asm_targets.Asm_directives_dwarf. build_asm_directives () in
565
565
let get_file_num = (get_file_num ~file_emitter ) in
566
566
Asm_targets.Asm_directives_new. debug_header ~get_file_num ;
567
567
let unit_name =
You can’t perform that action at this time.
0 commit comments