summaryrefslogtreecommitdiff
path: root/src/passes/RemoveNonJSOps.cpp
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2020-01-07 11:16:44 -0800
committerGitHub <noreply@github.com>2020-01-07 11:16:44 -0800
commite8f9d207427bda2f6e22c28ff0210b294b1f70e1 (patch)
tree503b20fb06274e38af7e25e3a1a4106827c52693 /src/passes/RemoveNonJSOps.cpp
parentf73b40c7873dbd2dd46a962f3afe5b97a7fc8b0a (diff)
downloadbinaryen-e8f9d207427bda2f6e22c28ff0210b294b1f70e1.tar.gz
binaryen-e8f9d207427bda2f6e22c28ff0210b294b1f70e1.tar.bz2
binaryen-e8f9d207427bda2f6e22c28ff0210b294b1f70e1.zip
[NFC] Enforce use of `Type::` on type names (#2434)
Diffstat (limited to 'src/passes/RemoveNonJSOps.cpp')
-rw-r--r--src/passes/RemoveNonJSOps.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/passes/RemoveNonJSOps.cpp b/src/passes/RemoveNonJSOps.cpp
index eebd97ae1..d758440f2 100644
--- a/src/passes/RemoveNonJSOps.cpp
+++ b/src/passes/RemoveNonJSOps.cpp
@@ -158,12 +158,12 @@ struct RemoveNonJSOpsPass : public WalkerPass<PostWalker<RemoveNonJSOpsPass>> {
// can actually implement) and then use reinterpretation to get the float
// back out.
switch (curr->type) {
- case f32:
- curr->type = i32;
+ case Type::f32:
+ curr->type = Type::i32;
replaceCurrent(builder->makeUnary(ReinterpretInt32, curr));
break;
- case f64:
- curr->type = i64;
+ case Type::f64:
+ curr->type = Type::i64;
replaceCurrent(builder->makeUnary(ReinterpretInt64, curr));
break;
default:
@@ -180,12 +180,12 @@ struct RemoveNonJSOpsPass : public WalkerPass<PostWalker<RemoveNonJSOpsPass>> {
// we can actually implement) and then use reinterpretation to store the
// right value.
switch (curr->valueType) {
- case f32:
- curr->valueType = i32;
+ case Type::f32:
+ curr->valueType = Type::i32;
curr->value = builder->makeUnary(ReinterpretFloat32, curr->value);
break;
- case f64:
- curr->valueType = i64;
+ case Type::f64:
+ curr->valueType = Type::i64;
curr->value = builder->makeUnary(ReinterpretFloat64, curr->value);
break;
default: