From effc77d47a45294b253ba4dc94e67366126e4cc0 Mon Sep 17 00:00:00 2001 From: Mikael Pettersson Date: Sun, 15 Dec 2019 17:40:02 +0100 Subject: [PATCH] as: tunit: handle .data directive --- erlang/apps/as/src/tunit.hrl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/erlang/apps/as/src/tunit.hrl b/erlang/apps/as/src/tunit.hrl index 0c67d3d..2e106b1 100644 --- a/erlang/apps/as/src/tunit.hrl +++ b/erlang/apps/as/src/tunit.hrl @@ -36,6 +36,9 @@ %% either interpreted immediately or appended to the representation of the %% current section. +%% .data [nr] +-record(s_dot_data, {nr :: non_neg_integer()}). + %% .file "foo.c" -record(s_dot_file, {string :: string()}). @@ -78,7 +81,8 @@ , index :: 0..((1 bsl 4) - 1) }). --type stmt() :: #s_dot_file{} +-type stmt() :: #s_dot_data{} + | #s_dot_file{} | #s_dot_globl{} | #s_dot_ident{} | #s_dot_popsection{}