Skip to content

Commit 820f17b

Browse files
committed
use new directives on arm
1 parent 3dcd846 commit 820f17b

File tree

4 files changed

+261
-202
lines changed

4 files changed

+261
-202
lines changed

backend/amd64/emit.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ let to_x86_directive (dir : ND.Directive.t) : X86_ast.asm_line list =
110110
comment_lines comment @ [X86_ast.Sleb128 (to_x86_constant constant)]
111111
| Space { bytes } -> [Space bytes]
112112
| Type (n, st) ->
113-
let typ = match st with Function -> "STT_FUNC" | Object -> "STT_OBJECT" in
113+
let typ = ND.symbol_type_to_string st in
114114
[Type (n, typ)]
115115
| Uleb128 { constant; comment } ->
116116
comment_lines comment @ [X86_ast.Uleb128 (to_x86_constant constant)]

0 commit comments

Comments
 (0)