It looks a bit wierd that we have to initialize symbols for all ELFT types when
we use only one ELFT for link. It is little but extra work. Do we really have reasons for that ?
I reviewed this symbols we are initializing and I think we can only init those
what we need at start of link() call.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM. As a followup patch, can you move doInitSymbols to Driver.cpp and make it static?
Comment Actions
LGTM
ELF/Symbols.h | ||
---|---|---|
44 | Rename doInitSymbols -> initSymbols. ("do" is a prefix I often add to file-local helper functions.) |
Comment Actions
Because that Symbol.cpp needs to initialize symbols for each ELF type is an internal detail of the file. initSymbol, or in general, init<filename> is the initializer function for a file.
Rename doInitSymbols -> initSymbols. ("do" is a prefix I often add to file-local helper functions.)