OLD | NEW |
| (Empty) |
1 /* native_client/src/trusted/validator/x86/decoder/gen/ncopcode_operand_flag_imp
l.h | |
2 * THIS FILE IS AUTO_GENERATED DO NOT EDIT. | |
3 * | |
4 * This file was auto-generated by enum_gen.py | |
5 * from file ncopcode_operand_flag.enum | |
6 */ | |
7 | |
8 /* Define the corresponding names of NaClOpFlag. */ | |
9 static const char* const g_NaClOpFlagName[NaClOpFlagEnumSize + 1] = { | |
10 "OpUse", | |
11 "OpSet", | |
12 "OpAddress", | |
13 "OpImplicit", | |
14 "OperandNear", | |
15 "OperandFar", | |
16 "OperandRelative", | |
17 "OperandZeroExtends_v", | |
18 "OperandSignExtends_v", | |
19 "AllowGOperandWithOpcodeInModRm", | |
20 "NaClOpFlagEnumSize" | |
21 }; | |
22 | |
23 const char* NaClOpFlagName(NaClOpFlag name) { | |
24 return name <= NaClOpFlagEnumSize | |
25 ? g_NaClOpFlagName[name] | |
26 : "NaClOpFlag???"; | |
27 } | |
OLD | NEW |