Skip to content
Snippets Groups Projects
Commit e5faf939 authored by Basile Desloges's avatar Basile Desloges
Browse files

[eacsl:runtime] Merge RTL pragmas into the user's AST

parent 620fc8b2
No related branches found
No related tags found
No related merge requests found
...@@ -156,8 +156,10 @@ let lookup_rtl_globals rtl_ast = ...@@ -156,8 +156,10 @@ let lookup_rtl_globals rtl_ast =
| GAnnot _ :: l -> | GAnnot _ :: l ->
(* ignoring annotations from the AST *) (* ignoring annotations from the AST *)
do_globals acc l do_globals acc l
| GAsm _ | GPragma _ | GText _ as g :: _l -> | GPragma _ as g :: l ->
Kernel.fatal "unexpected global %a" Printer.pp_global g do_it Symbols.mem_global acc l g
| GAsm _ | GText _ as g :: _l ->
Options.fatal "unexpected global %a" Printer.pp_global g
in in
do_globals [] rtl_ast.globals do_globals [] rtl_ast.globals
...@@ -245,8 +247,10 @@ let insert_rtl_globals rtl_prj rtl_globals ast = ...@@ -245,8 +247,10 @@ let insert_rtl_globals rtl_prj rtl_globals ast =
acc acc
in in
add acc l add acc l
| GAnnot _ | GAsm _ | GPragma _ | GText _ as g :: _l -> | GPragma _ as g :: l ->
Kernel.fatal "unexpected global %a" Printer.pp_global g add (g :: acc) l
| GAnnot _ | GAsm _ | GText _ as g :: _l ->
Options.fatal "unexpected global %a" Printer.pp_global g
in in
ast.globals <- add ast.globals rtl_globals ast.globals <- add ast.globals rtl_globals
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment