[WebAssembly] Limit PIC support to the Emscripten target
authorDan Gohman <dan433584@gmail.com>
Wed, 5 Jun 2019 20:01:01 +0000 (20:01 +0000)
committerDan Gohman <dan433584@gmail.com>
Wed, 5 Jun 2019 20:01:01 +0000 (20:01 +0000)
commit53572d0470c92d3c10ab46b681d579680ad546c2
tree22f5c56d846cee7e1b76bd6a185e5743d7b465e0
parente34d1a4e07b8d477c279388e1a05f6dd64ab0ada
[WebAssembly] Limit PIC support to the Emscripten target

The current PIC support currently only works with Emscripten, so
disable it for other targets.

This is the PIC portion of https://reviews.llvm.org/D62542.

Reviewed By: dschuff, sbc100

llvm-svn: 362638
llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
llvm/test/CodeGen/WebAssembly/address-offsets.ll
llvm/test/CodeGen/WebAssembly/call-pic.ll
llvm/test/CodeGen/WebAssembly/load-store-pic.ll