}
bool X86ATTAsmParser::ParseInstruction(const StringRef &Name, MCInst &Inst) {
- SmallVector<X86Operand, 4> Operands;
+ SmallVector<X86Operand, 8> Operands;
Operands.push_back(X86Operand::CreateToken(Name));
using namespace llvm;
namespace {
- cl::opt<std::string>
- MatchOneInstr("match-one-instr", cl::desc("Match only the named instruction"),
+static cl::opt<std::string>
+MatchOneInstr("match-one-instr", cl::desc("Match only the named instruction"),
cl::init(""));
}
namespace {
-struct OperandListLess {
- bool operator()(const
- std::pair<const CodeGenInstruction::OperandInfo*, unsigned> &
- A,
- const
- std::pair<const CodeGenInstruction::OperandInfo*, unsigned> &
- B) {
- return A.first->MIOperandNo < B.first->MIOperandNo;
- }
-
-};
-
struct InstructionInfo {
struct Operand {
enum {