summaryrefslogtreecommitdiff
path: root/src/abi
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2018-12-17 17:04:51 -0800
committerGitHub <noreply@github.com>2018-12-17 17:04:51 -0800
commitdfdae1aece431cc98defaf04e08108fea0f07a34 (patch)
treed1562a18031b400648ccfb66f90a05f9d9198ea6 /src/abi
parentbf6972c3816dc81b167317a94487d5b9d2c88db0 (diff)
downloadbinaryen-dfdae1aece431cc98defaf04e08108fea0f07a34.tar.gz
binaryen-dfdae1aece431cc98defaf04e08108fea0f07a34.tar.bz2
binaryen-dfdae1aece431cc98defaf04e08108fea0f07a34.zip
Partial legalization (#1824) review followup (#1832)
Diffstat (limited to 'src/abi')
-rw-r--r--src/abi/js.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/abi/js.h b/src/abi/js.h
index 539b465fb..bcc7dbb6e 100644
--- a/src/abi/js.h
+++ b/src/abi/js.h
@@ -23,13 +23,13 @@ namespace wasm {
namespace ABI {
-enum LegalizationLevel {
+enum class LegalizationLevel {
Full = 0,
Minimal = 1
};
inline std::string getLegalizationPass(LegalizationLevel level) {
- if (level == Full) {
+ if (level == LegalizationLevel::Full) {
return "legalize-js-interface";
} else {
return "legalize-js-interface-minimally";