mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-10-15 05:19:41 -07:00
assign COMDAT symlinks as soon as the symbol table is processed
This commit is contained in:
1 parent
1fe85acff8
commit
dd715dacf7
5 files changed
+74
-81
No files matched your search
@@ -489,11 +489,17 @@ lnk_symbol_table_push(LNK_SymbolTable *symtab, LNK_SymbolScope scope, LNK_Symbol
|
||||
lnk_symbol_table_push_(symtab, symtab->arena->v[0], 0, scope, symbol);
|
||||
}
|
||||
|
||||
internal LNK_SymbolHashTrie *
|
||||
lnk_symbol_table_search_(LNK_SymbolTable *symtab, LNK_SymbolScope scope, String8 name)
|
||||
{
|
||||
U64 hash = lnk_symbol_hash(name);
|
||||
return lnk_symbol_hash_trie_search(symtab->scopes[scope], hash, name);
|
||||
}
|
||||
|
||||
internal LNK_Symbol *
|
||||
lnk_symbol_table_search(LNK_SymbolTable *symtab, LNK_SymbolScope scope, String8 name)
|
||||
{
|
||||
U64 hash = lnk_symbol_hash(name);
|
||||
LNK_SymbolHashTrie *trie = lnk_symbol_hash_trie_search(symtab->scopes[scope], hash, name);
|
||||
LNK_SymbolHashTrie *trie = lnk_symbol_table_search_(symtab, scope, name);
|
||||
return trie ? trie->symbol : 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user