Reland "[lld][WebAssembly] Cleanup duplicate fields in Symbols.h. NFC"
authorSam Clegg <sbc@chromium.org>
Thu, 15 Jul 2021 00:16:15 +0000 (17:16 -0700)
committerSam Clegg <sbc@chromium.org>
Tue, 20 Jul 2021 19:13:08 +0000 (12:13 -0700)
commitf428693de0aafbd397706e11722a84bc9c20a346
tree1d02a51e29d2818357871172af0b378bfd0f0000
parent6312a75dbaaf2d4c968cfa3322fc9df60621d4ee
Reland "[lld][WebAssembly] Cleanup duplicate fields in Symbols.h. NFC"

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).

Originally commit: 9b965b37c75d626c01951184088314590e38d299
Reverted in: 16aac493e59519377071e900d119ba2e7e5b525d.

Differential Revision: https://reviews.llvm.org/D106026
lld/wasm/Symbols.h
lld/wasm/SyntheticSections.cpp
lld/wasm/Writer.cpp