Output exported numeric constants to sym file (#1439)

This commit is contained in:
Sylvie
2024-08-06 10:58:35 -04:00
committed by GitHub
parent bb480b761c
commit fc8707886c
5 changed files with 30 additions and 2 deletions

View File

@@ -22,6 +22,11 @@ Label const &Symbol::label() const {
return std::get<Label>(data);
}
void sym_ForEach(void (*callback)(Symbol &)) {
for (auto &it : symbols)
callback(*it.second);
}
void sym_AddSymbol(Symbol &symbol) {
Symbol *other = sym_GetSymbol(symbol.name);
auto *symValue = std::get_if<int32_t>(&symbol.data);