diff options
| author | Thomas Lively <tlively@google.com> | 2019-03-25 18:10:26 +0000 |
|---|---|---|
| committer | Thomas Lively <tlively@google.com> | 2019-03-25 18:10:26 +0000 |
| commit | 84c8652fc3085155d0f9c355455e5a797c6d9db6 (patch) | |
| tree | d35da286bedb82ea701b691e94eb3e3e8ea3b4ff /lld/wasm/Driver.cpp | |
| parent | a199a9ba40c722a78f6e76a91c1a2263468c48cb (diff) | |
| download | bcm5719-llvm-84c8652fc3085155d0f9c355455e5a797c6d9db6.tar.gz bcm5719-llvm-84c8652fc3085155d0f9c355455e5a797c6d9db6.zip | |
Revert "[WebAssembly] Add linker options to control feature checking"
This reverts commit 5991328c96b6146999cfa74ede42901f8c01f2fa.
llvm-svn: 356932
Diffstat (limited to 'lld/wasm/Driver.cpp')
| -rw-r--r-- | lld/wasm/Driver.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lld/wasm/Driver.cpp b/lld/wasm/Driver.cpp index f9dfd5ce464..19ea38c1d94 100644 --- a/lld/wasm/Driver.cpp +++ b/lld/wasm/Driver.cpp @@ -21,7 +21,6 @@ #include "lld/Common/Version.h" #include "llvm/ADT/Twine.h" #include "llvm/Object/Wasm.h" -#include "llvm/Option/Arg.h" #include "llvm/Option/ArgList.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/Path.h" @@ -293,8 +292,6 @@ static StringRef getEntry(opt::InputArgList &Args, StringRef Default) { // of these values. static void setConfigs(opt::InputArgList &Args) { Config->AllowUndefined = Args.hasArg(OPT_allow_undefined); - Config->CheckFeatures = - Args.hasFlag(OPT_check_features, OPT_no_check_features, true); Config->CompressRelocations = Args.hasArg(OPT_compress_relocations); Config->Demangle = Args.hasFlag(OPT_demangle, OPT_no_demangle, true); Config->DisableVerify = Args.hasArg(OPT_disable_verify); @@ -342,13 +339,6 @@ static void setConfigs(opt::InputArgList &Args) { Config->MaxMemory = args::getInteger(Args, OPT_max_memory, 0); Config->ZStackSize = args::getZOptionValue(Args, OPT_z, "stack-size", WasmPageSize); - - if (auto *Arg = Args.getLastArg(OPT_features)) { - Config->Features = - llvm::Optional<std::vector<std::string>>(std::vector<std::string>()); - for (StringRef S : Arg->getValues()) - Config->Features->push_back(S); - } } // Some command line options or some combinations of them are not allowed. |

