blob: 9ee9bda27d01d2337513eeb541655a3383c69771 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include "WAVM/IR/Operators.h"
#include "WAVM/IR/Types.h"
using namespace WAVM;
using namespace WAVM::IR;
const char* IR::getOpcodeName(Opcode opcode)
{
switch(opcode)
{
#define VISIT_OPCODE(encoding, name, nameString, Imm, ...) \
case Opcode::name: return nameString;
WAVM_ENUM_OPERATORS(VISIT_OPCODE)
#undef VISIT_OPCODE
default: return "unknown";
};
}
|