[WebAssembly] Move code for copying of data segment relocation. NFC.
authorSam Clegg <sbc@chromium.org>
Sun, 17 Dec 2017 17:52:01 +0000 (17:52 +0000)
committerSam Clegg <sbc@chromium.org>
Sun, 17 Dec 2017 17:52:01 +0000 (17:52 +0000)
commitf61676a18aca95bb435a3c2873812c8a4f9bed8b
tree79a68f9151707aa465c85777e5b9e69b05302489
parentb07a016ed10503f45dc55a652fb38899d1297916
[WebAssembly] Move code for copying of data segment relocation. NFC.

This is a preparetory change for function gc which also
requires relocations to be copied in ranges like this.

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

llvm-svn: 320948
lld/wasm/InputFiles.cpp
lld/wasm/Writer.cpp