diff options
author | Ben Smith <binjimin@gmail.com> | 2018-02-27 23:24:39 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-27 23:24:39 -0800 |
commit | f3766f9eb9987a5a8f190c5741b0e9220adff520 (patch) | |
tree | 50c37f44acb69a14b1912f994e82159162356a3e /src | |
parent | d3b58431583a29888baff2a4aa8acdba3d05c5d1 (diff) | |
download | wabt-f3766f9eb9987a5a8f190c5741b0e9220adff520.tar.gz wabt-f3766f9eb9987a5a8f190c5741b0e9220adff520.tar.bz2 wabt-f3766f9eb9987a5a8f190c5741b0e9220adff520.zip |
Fix token name order (#776)
WAIT and WAKE were in the wrong place. I also moved TERNARY up so it the
list is in alphabetic order.
Diffstat (limited to 'src')
-rw-r--r-- | src/token.cc | 6 | ||||
-rw-r--r-- | src/token.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/token.cc b/src/token.cc index f8bdc7f0..50d3e71f 100644 --- a/src/token.cc +++ b/src/token.cc @@ -69,6 +69,8 @@ const char* GetTokenTypeName(TokenType token_type) { "ATOMIC_RMW", "ATOMIC_RMW_CMPXCHG", "ATOMIC_STORE", + "ATOMIC_WAIT", + "ATOMIC_WAKE", "BINARY", "block", "br", @@ -99,13 +101,11 @@ const char* GetTokenTypeName(TokenType token_type) { "set_local", "STORE", "tee_local", + "TERNARY", "throw", "try", "UNARY", - "TERNARY", "unreachable", - "WAIT", - "WAKE", // String. "align=", diff --git a/src/token.h b/src/token.h index e858d6d1..b2fd3b7d 100644 --- a/src/token.h +++ b/src/token.h @@ -118,10 +118,10 @@ enum class TokenType { SetLocal, Store, TeeLocal, + Ternary, Throw, Try, Unary, - Ternary, Unreachable, First_Opcode = AtomicLoad, Last_Opcode = Unreachable, |