commit
c08befd0c0
|
@ -330,11 +330,11 @@ return_expr* linker::generate_module_return(code_block* block) {
|
||||||
auto value = new hash_expr(block->get_location());
|
auto value = new hash_expr(block->get_location());
|
||||||
result->set_value(value);
|
result->set_value(value);
|
||||||
for (const auto& i : finder->do_find(block)) {
|
for (const auto& i : finder->do_find(block)) {
|
||||||
auto pair = new hash_pair(block->get_location());
|
|
||||||
// do not export symbol begins with '_'
|
// do not export symbol begins with '_'
|
||||||
if (i.name.length() && i.name[0]=='_') {
|
if (i.name.length() && i.name[0]=='_') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
auto pair = new hash_pair(block->get_location());
|
||||||
pair->set_name(i.name);
|
pair->set_name(i.name);
|
||||||
pair->set_value(new identifier(block->get_location(), i.name));
|
pair->set_value(new identifier(block->get_location(), i.name));
|
||||||
value->add_member(pair);
|
value->add_member(pair);
|
||||||
|
|
Loading…
Reference in New Issue