[wasm] Pull return true out of macro
Change-Id: I7fd794342a13718059b47ea25c26d850ed2da509 Reviewed-on: https://chromium-review.googlesource.com/564189 Reviewed-by: Clemens Hammacher <clemensh@chromium.org> Commit-Queue: Clemens Hammacher <clemensh@chromium.org> Cr-Commit-Position: refs/heads/master@{#46506}
This commit is contained in:
parent
5359d8680a
commit
c5b46fd3dd
@ -248,11 +248,10 @@ const char* WasmOpcodes::OpcodeName(WasmOpcode opcode) {
|
||||
|
||||
bool WasmOpcodes::IsPrefixOpcode(WasmOpcode opcode) {
|
||||
switch (opcode) {
|
||||
#define CHECK_PREFIX(name, opcode) \
|
||||
case k##name##Prefix: \
|
||||
return true;
|
||||
#define CHECK_PREFIX(name, opcode) case k##name##Prefix:
|
||||
FOREACH_PREFIX(CHECK_PREFIX)
|
||||
#undef CHECK_PREFIX
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
@ -260,11 +259,10 @@ bool WasmOpcodes::IsPrefixOpcode(WasmOpcode opcode) {
|
||||
|
||||
bool WasmOpcodes::IsControlOpcode(WasmOpcode opcode) {
|
||||
switch (opcode) {
|
||||
#define CHECK_OPCODE(name, opcode, _) \
|
||||
case kExpr##name: \
|
||||
return true;
|
||||
#define CHECK_OPCODE(name, opcode, _) case kExpr##name:
|
||||
FOREACH_CONTROL_OPCODE(CHECK_OPCODE)
|
||||
#undef CHECK_OPCODE
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user