[WebAssembly] Refactor config setting and checking. NFC.
authorSam Clegg <sbc@chromium.org>
Thu, 15 Nov 2018 18:09:41 +0000 (18:09 +0000)
committerSam Clegg <sbc@chromium.org>
Thu, 15 Nov 2018 18:09:41 +0000 (18:09 +0000)
commitd5f650631c85dca79bf78b116856b8dff060ab36
tree8e2e90a6534d67cde4b71c81a4f5e6f47ddec5de
parent642c8d35755887b2c06cb589371c0c13b3530ad7
[WebAssembly] Refactor config setting and checking. NFC.

This matches the way the ELF backend does it.

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

llvm-svn: 346972
lld/ELF/Driver.cpp
lld/wasm/Driver.cpp