summaryrefslogtreecommitdiff
path: root/src/support/command-line.h
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2019-04-03 18:15:00 -0700
committerGitHub <noreply@github.com>2019-04-03 18:15:00 -0700
commitb175e75d2b247b3687061cf51174e72f8ada4aca (patch)
treec6de3440e440e2ccfdb11bad957c344bef239de7 /src/support/command-line.h
parent773759f7842611bbe3e30f7b9d4cd24350291976 (diff)
downloadbinaryen-b175e75d2b247b3687061cf51174e72f8ada4aca.tar.gz
binaryen-b175e75d2b247b3687061cf51174e72f8ada4aca.tar.bz2
binaryen-b175e75d2b247b3687061cf51174e72f8ada4aca.zip
Use target features section in wasm-opt (#1967)
If the user does not supply features explicitly on the command line, read and use the features in the target features section for validation and passes. If the user does supply features explicitly, error if they are not a superset of the features marked as used in the target features section and the user does not explicitly handle this.
Diffstat (limited to 'src/support/command-line.h')
-rw-r--r--src/support/command-line.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/support/command-line.h b/src/support/command-line.h
index 89bf72070..de773bfa8 100644
--- a/src/support/command-line.h
+++ b/src/support/command-line.h
@@ -34,7 +34,7 @@ namespace wasm {
class Options {
public:
- typedef std::function<void(Options *, const std::string& )> Action;
+ using Action = std::function<void(Options *, const std::string& )>;
enum class Arguments { Zero, One, N, Optional };
bool debug;
@@ -44,7 +44,7 @@ class Options {
~Options();
Options &add(const std::string& longName, const std::string& shortName,
const std::string& description, Arguments arguments,
- const Action &action);
+ const Action& action);
Options &add_positional(const std::string& name, Arguments arguments,
const Action &action);
void parse(int argc, const char *argv[]);