File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,14 @@ bool is_clinit_wrapper_function(const irep_idt &function_id)
80
80
return has_suffix (id2string (function_id), clinit_wrapper_suffix);
81
81
}
82
82
83
+ // / Check if function_id is a clinit
84
+ // / \param function_id: some function identifier
85
+ // / \return true if the passed identifier is a clinit
86
+ bool is_clinit_function (const irep_idt &function_id)
87
+ {
88
+ return has_suffix (id2string (function_id), clinit_function_suffix);
89
+ }
90
+
83
91
// / Add a new symbol to the symbol table.
84
92
// / Note: assumes that a symbol with this name does not exist.
85
93
// / /param name: name of the symbol to be generated
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ irep_idt clinit_wrapper_name(const irep_idt &class_name);
25
25
irep_idt user_specified_clinit_name (const irep_idt &class_name);
26
26
27
27
bool is_clinit_wrapper_function (const irep_idt &function_id);
28
+ bool is_clinit_function (const irep_idt &function_id);
28
29
29
30
void create_static_initializer_symbols (
30
31
symbol_tablet &symbol_table,
You can’t perform that action at this time.
0 commit comments