OSDN Git Service

[WebAssembly] Don't override default implementation of isOffsetFoldingLegal. NFC.
authorSam Clegg <sbc@chromium.org>
Mon, 18 Mar 2019 21:21:12 +0000 (21:21 +0000)
committerSam Clegg <sbc@chromium.org>
Mon, 18 Mar 2019 21:21:12 +0000 (21:21 +0000)
commitca5bbb310e662b516ee943c29df782e11404f576
tree33eb0321a96a960d41910ba07c22499115580359
parent44d05035050938c0f9b167d4d3a488e2cfb75c62
[WebAssembly] Don't override default implementation of isOffsetFoldingLegal. NFC.

The default implementation does we want and is going to more compatible
with dynamic linking (-fPIC) support that is planned.

This is NFC because currently we only build wasm with
`-relocation-model=static` which in turn means that the default
`isOffsetFoldingLegal` always returns true today.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356410 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/TargetMachine.cpp
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
lib/Target/WebAssembly/WebAssemblyISelLowering.h