C++11: Document some limitations imposed by MSVC
[oota-llvm.git] / utils / TableGen / X86DisassemblerShared.h
1 //===- X86DisassemblerShared.h - Emitter shared header ----------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef X86DISASSEMBLERSHARED_H
11 #define X86DISASSEMBLERSHARED_H
12
13 #include <string.h>
14 #include <string>
15
16 #define INSTRUCTION_SPECIFIER_FIELDS       \
17   struct OperandSpecifier operands[X86_MAX_OPERANDS]; \
18   InstructionContext      insnContext;     \
19   std::string             name;            \
20                                            \
21   InstructionSpecifier() {                 \
22     insnContext = IC;                      \
23     name = "";                             \
24     memset(operands, 0, sizeof(operands)); \
25   }
26
27 #define INSTRUCTION_IDS           \
28   InstrUID   instructionIDs[256];
29
30 #include "../../lib/Target/X86/Disassembler/X86DisassemblerDecoderCommon.h"
31
32 #undef INSTRUCTION_SPECIFIER_FIELDS
33 #undef INSTRUCTION_IDS
34
35 #endif