diff options
| author | Sam Clegg <sbc@chromium.org> | 2017-12-19 20:45:15 +0000 |
|---|---|---|
| committer | Sam Clegg <sbc@chromium.org> | 2017-12-19 20:45:15 +0000 |
| commit | 5e8cba9e394b8cdf84486d5a85a53c8eb7d1f932 (patch) | |
| tree | cf897b9c22a7d7488ee336655c8731c96f55d93a /lld/wasm/InputSegment.h | |
| parent | d2d7fb63f79e80f6bbd864253bda8b94d46d1f20 (diff) | |
| download | bcm5719-llvm-5e8cba9e394b8cdf84486d5a85a53c8eb7d1f932.tar.gz bcm5719-llvm-5e8cba9e394b8cdf84486d5a85a53c8eb7d1f932.zip | |
[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
Diffstat (limited to 'lld/wasm/InputSegment.h')
| -rw-r--r-- | lld/wasm/InputSegment.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lld/wasm/InputSegment.h b/lld/wasm/InputSegment.h index 64124b1ebc2..f70a3ded895 100644 --- a/lld/wasm/InputSegment.h +++ b/lld/wasm/InputSegment.h @@ -21,6 +21,7 @@ #ifndef LLD_WASM_INPUT_SEGMENT_H #define LLD_WASM_INPUT_SEGMENT_H +#include "WriterUtils.h" #include "lld/Common/ErrorHandler.h" #include "llvm/Object/Wasm.h" @@ -62,6 +63,7 @@ public: const WasmSegment *Segment; const ObjFile *File; std::vector<WasmRelocation> Relocations; + std::vector<OutputRelocation> OutRelocations; protected: const OutputSegment *OutputSeg = nullptr; |

