[WebAssembly] Apply data relocations in parallel. NFC.
authorSam Clegg <sbc@chromium.org>
Tue, 19 Dec 2017 20:45:15 +0000 (20:45 +0000)
committerSam Clegg <sbc@chromium.org>
Tue, 19 Dec 2017 20:45:15 +0000 (20:45 +0000)
commit5e8cba9e394b8cdf84486d5a85a53c8eb7d1f932
treecf897b9c22a7d7488ee336655c8731c96f55d93a
parentd2d7fb63f79e80f6bbd864253bda8b94d46d1f20
[WebAssembly] Apply data relocations in parallel. NFC.

Store data relocations with their respective segment.
This allows relocations to be applied as each segment
is written (and therefore in parallel).

Differential Revision: https://reviews.llvm.org/D41410

llvm-svn: 321105
lld/wasm/InputSegment.h
lld/wasm/OutputSections.cpp
lld/wasm/OutputSections.h
lld/wasm/OutputSegment.h