[WebAssembly] Fix typo in relocation checking
authorSam Clegg <sbc@chromium.org>
Tue, 23 Apr 2019 14:49:38 +0000 (14:49 +0000)
committerSam Clegg <sbc@chromium.org>
Tue, 23 Apr 2019 14:49:38 +0000 (14:49 +0000)
commit99cf58339fceadee43ba3fdbf962a083cd5af6c4
tree2be7b876690081ab3663b431590296be070b0b65
parentdf3cb477a314a3c3abbbfbbfa2e88245bcfa325f
[WebAssembly] Fix typo in relocation checking

Runtime relocation are generated for relocations of type
R_WASM_MEMORY_ADDR_I32 when in PIC mode (either -shared or -pie).

Followup on https://reviews.llvm.org/D60882.

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

llvm-svn: 358995
lld/test/wasm/pie.ll [new file with mode: 0644]
lld/wasm/InputFiles.cpp