diff options
Diffstat (limited to 'llvm/utils/TableGen/X86DisassemblerShared.h')
-rw-r--r-- | llvm/utils/TableGen/X86DisassemblerShared.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/llvm/utils/TableGen/X86DisassemblerShared.h b/llvm/utils/TableGen/X86DisassemblerShared.h index 036e92430b0..2d3d3fc1bcb 100644 --- a/llvm/utils/TableGen/X86DisassemblerShared.h +++ b/llvm/utils/TableGen/X86DisassemblerShared.h @@ -13,17 +13,6 @@ #include <string.h> #include <string> -#define INSTRUCTION_SPECIFIER_FIELDS \ - struct OperandSpecifier operands[X86_MAX_OPERANDS]; \ - InstructionContext insnContext; \ - std::string name; \ - \ - InstructionSpecifier() { \ - insnContext = IC; \ - name = ""; \ - memset(operands, 0, sizeof(operands)); \ - } - #define INSTRUCTION_IDS \ InstrUID instructionIDs[256]; @@ -32,4 +21,16 @@ #undef INSTRUCTION_SPECIFIER_FIELDS #undef INSTRUCTION_IDS +struct InstructionSpecifier { + llvm::X86Disassembler::OperandSpecifier operands[X86_MAX_OPERANDS]; + llvm::X86Disassembler::InstructionContext insnContext; + std::string name; + + InstructionSpecifier() { + insnContext = llvm::X86Disassembler::IC; + name = ""; + memset(operands, 0, sizeof(operands)); + } +}; + #endif |