|
14 | 14 | * limitations under the License.
|
15 | 15 | */
|
16 | 16 |
|
17 |
| -#include "feature-options.h" |
| 17 | +#include "tool-options.h" |
18 | 18 |
|
19 | 19 | //
|
20 | 20 | // Shared optimization options for commandline tools
|
21 | 21 | //
|
22 | 22 |
|
23 | 23 | namespace wasm {
|
24 | 24 |
|
25 |
| -struct OptimizationOptions : public FeatureOptions { |
| 25 | +struct OptimizationOptions : public ToolOptions { |
26 | 26 | static constexpr const char* DEFAULT_OPT_PASSES = "O";
|
27 | 27 |
|
28 | 28 | std::vector<std::string> passes;
|
29 | 29 |
|
30 |
| - OptimizationOptions(const std::string& command, const std::string& description) : FeatureOptions(command, description) { |
| 30 | + OptimizationOptions(const std::string& command, const std::string& description) : ToolOptions(command, description) { |
31 | 31 | (*this).add("", "-O", "execute default optimization passes",
|
32 | 32 | Options::Arguments::Zero,
|
33 | 33 | [this](Options*, const std::string&) {
|
@@ -92,11 +92,6 @@ struct OptimizationOptions : public FeatureOptions {
|
92 | 92 | [this](Options* o, const std::string& argument) {
|
93 | 93 | passOptions.shrinkLevel = atoi(argument.c_str());
|
94 | 94 | })
|
95 |
| - .add("--no-validation", "-n", "Disables validation, assumes inputs are correct", |
96 |
| - Options::Arguments::Zero, |
97 |
| - [this](Options* o, const std::string& argument) { |
98 |
| - passOptions.validate = false; |
99 |
| - }) |
100 | 95 | .add("--ignore-implicit-traps", "-iit", "Optimize under the helpful assumption that no surprising traps occur (from load, div/mod, etc.)",
|
101 | 96 | Options::Arguments::Zero,
|
102 | 97 | [this](Options*, const std::string&) {
|
|
0 commit comments