This avoids duplication and simplifies the code in several places
without increasing the size of the symbol union (at least not
above the assert'd limit of 120 bytes).
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lld/wasm/Symbols.h | ||
---|---|---|
177 | Are you concerned about growing the size of Symbol by 6 words, even though the majority of symbols aren't imported and won't use these fields? |
lld/wasm/Symbols.h | ||
---|---|---|
177 | Ah okay I see what you mean about this not growing the size of SymbolUnion which I guess is more important than Symbol itself. |
lld/wasm/Symbols.h | ||
---|---|---|
177 | Its only the sizeof SymbolUnion that actually makes any difference here since all symbols are allocated at that size. This change didn't effect the sizeof SymbolUnion, at least no enough to cause the static assert to fail. I can take a look at weather it changed at all. |
lld/wasm/Symbols.h | ||
---|---|---|
177 | Confirms that SymbolUnion size if unchanged by this PR (120 bytes before and after). |
Are you concerned about growing the size of Symbol by 6 words, even though the majority of symbols aren't imported and won't use these fields?