[lld][WebAssembly] Common superclass for input globals/events/tables
authorAndy Wingo <wingo@igalia.com>
Thu, 11 Feb 2021 11:15:24 +0000 (12:15 +0100)
committerAndy Wingo <wingo@igalia.com>
Thu, 11 Feb 2021 13:54:45 +0000 (14:54 +0100)
commita56e57493b18a04339d7980fcd4f000c518c1017
tree7e9648fd72fef20bd28fdb4668b7c41fcbbce676
parent67464dfe366b533045dc3c15a069d0768a20629f
[lld][WebAssembly] Common superclass for input globals/events/tables

This commit regroups commonalities among InputGlobal, InputEvent, and
InputTable into the new InputElement.  The subclasses are defined
inline in the new InputElement.h.  NFC.

Reviewed By: sbc100

Differential Revision: https://reviews.llvm.org/D94677
15 files changed:
lld/include/lld/Common/LLVM.h
lld/wasm/Driver.cpp
lld/wasm/InputElement.h [new file with mode: 0644]
lld/wasm/InputEvent.h [deleted file]
lld/wasm/InputFiles.cpp
lld/wasm/InputGlobal.h [deleted file]
lld/wasm/InputTable.h [deleted file]
lld/wasm/MapFile.cpp
lld/wasm/MarkLive.cpp
lld/wasm/SymbolTable.cpp
lld/wasm/Symbols.cpp
lld/wasm/SyntheticSections.cpp
lld/wasm/Writer.cpp
lld/wasm/WriterUtils.cpp
lld/wasm/WriterUtils.h