📝 update

This commit is contained in:
ValKmjolnir 2023-07-21 00:33:04 +08:00
parent 25e202fbaf
commit 569d423772
2 changed files with 3 additions and 4 deletions

View File

@ -1201,8 +1201,9 @@ void codegen::symbol_dump(std::ostream& out) const {
for(const auto& domain : experimental_namespace) {
out << "<" << domain.first << ">\n";
for(const auto& i : domain.second) {
out << " " << i << ": 0x";
out << std::hex << global.at(i) << std::dec << "\n";
out << " 0x" << std::setw(4) << std::setfill('0');
out << std::hex << global.at(i) << std::dec << " ";
out << i << std::endl;
}
}
}

View File

@ -279,8 +279,6 @@ code_block* linker::load(code_block* root, u16 fileindex) {
}
auto tmp = import_regular_file((call_expr*)i);
tree->add_expression(generate_module_definition(tmp));
// link(tree, tmp);
// delete tmp;
}
// add root to the back of tree
auto file_head = new file_info(