[lld][WebAssembly] Rename methods/members to match ELF backend. NFC.
authorSam Clegg <sbc@chromium.org>
Fri, 26 Feb 2021 23:22:23 +0000 (15:22 -0800)
committerSam Clegg <sbc@chromium.org>
Sat, 27 Feb 2021 01:05:59 +0000 (17:05 -0800)
commit14ffbb84aa45ddc22a564074fb2e32e8cef6c586
tree542d528aa75737c7dd4b334919240b519b587822
parent1ab2753d4c2fcb4221a9171b11d513cb759842ac
[lld][WebAssembly] Rename methods/members to match ELF backend. NFC.

Specifically:

- InputChunk::outputOffset -> outSecOffset
- Symbol::get/setVirtualAddress -> get/setVA
- add InputChunk::getOffset helper that takes an offset

These are mostly in preparation for adding support for
SHF_MERGE/SHF_STRINGS but its also good to align with ELF where
possible.

Differential Revision: https://reviews.llvm.org/D97595
lld/wasm/InputChunks.cpp
lld/wasm/InputChunks.h
lld/wasm/InputFiles.cpp
lld/wasm/MapFile.cpp
lld/wasm/OutputSections.cpp
lld/wasm/SymbolTable.cpp
lld/wasm/Symbols.cpp
lld/wasm/Symbols.h
lld/wasm/SyntheticSections.cpp
lld/wasm/Writer.cpp