diff options
author | Ben Smith <binjimin@gmail.com> | 2017-11-21 14:51:34 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-21 14:51:34 -0800 |
commit | a630c95d472dc1615640bfe7d33849d45631778c (patch) | |
tree | e9b4e6b3568d70f1fa767c2cc0a5d2d0eca7263a /src/binary-writer.cc | |
parent | 49b7984544ddaf14d5e2f1ad9115dad7e9a2b299 (diff) | |
download | wabt-a630c95d472dc1615640bfe7d33849d45631778c.tar.gz wabt-a630c95d472dc1615640bfe7d33849d45631778c.tar.bz2 wabt-a630c95d472dc1615640bfe7d33849d45631778c.zip |
Rename {wake,wait} -> atomic.{wake,wait} (#672)
This was recently changed in the spec.
Diffstat (limited to 'src/binary-writer.cc')
-rw-r--r-- | src/binary-writer.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/binary-writer.cc b/src/binary-writer.cc index b0af2c35..c77f645a 100644 --- a/src/binary-writer.cc +++ b/src/binary-writer.cc @@ -359,6 +359,12 @@ void BinaryWriter::WriteExpr(const Module* module, case ExprType::AtomicStore: WriteLoadStoreExpr<AtomicStoreExpr>(module, func, expr, "memory offset"); break; + case ExprType::AtomicWait: + WriteLoadStoreExpr<AtomicWaitExpr>(module, func, expr, "memory offset"); + break; + case ExprType::AtomicWake: + WriteLoadStoreExpr<AtomicWakeExpr>(module, func, expr, "memory offset"); + break; case ExprType::Binary: WriteOpcode(stream_, cast<BinaryExpr>(expr)->opcode); break; @@ -545,12 +551,6 @@ void BinaryWriter::WriteExpr(const Module* module, case ExprType::Unreachable: WriteOpcode(stream_, Opcode::Unreachable); break; - case ExprType::Wait: - WriteLoadStoreExpr<WaitExpr>(module, func, expr, "memory offset"); - break; - case ExprType::Wake: - WriteLoadStoreExpr<WakeExpr>(module, func, expr, "memory offset"); - break; } } |