13
13
#include < util/symbol.h>
14
14
#include < util/symbol_table.h>
15
15
#include < util/prefix.h>
16
+ #include < util/cmdline.h>
16
17
#include < langapi/mode.h>
17
18
#include < memory>
18
19
25
26
// / body of the _start function).
26
27
rebuild_goto_start_functiont::rebuild_goto_start_functiont (
27
28
message_handlert &_message_handler,
29
+ const cmdlinet &cmdline,
28
30
symbol_tablet &symbol_table,
29
31
goto_functionst &goto_functions):
30
- messaget(_message_handler),
31
- symbol_table(symbol_table),
32
- goto_functions(goto_functions)
32
+ messaget(_message_handler),
33
+ cmdline(cmdline),
34
+ symbol_table(symbol_table),
35
+ goto_functions(goto_functions)
33
36
{
34
37
}
35
38
@@ -50,6 +53,7 @@ bool rebuild_goto_start_functiont::operator()(
50
53
std::unique_ptr<languaget> language=get_language_from_mode (mode);
51
54
INVARIANT (language, " No language found for mode: " +id2string (mode));
52
55
language->set_message_handler (get_message_handler ());
56
+ language->get_language_options (cmdline);
53
57
54
58
// To create a new entry point we must first remove the old one
55
59
remove_existing_entry_point ();
0 commit comments