llvm-mc/AsmMatcher: Tweaks in response to feedback.
authorDaniel Dunbar <daniel@zuster.org>
Fri, 7 Aug 2009 20:33:39 +0000 (20:33 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 7 Aug 2009 20:33:39 +0000 (20:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78404 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/AsmParser/X86AsmParser.cpp
utils/TableGen/AsmMatcherEmitter.cpp

index c8d5ddabaee9ec4ea8c06015c5130f142abb0053..62cce4707234bbf2aaef2eaa836453c33d827e95 100644 (file)
@@ -379,7 +379,7 @@ bool X86ATTAsmParser::ParseMemOperand(X86Operand &Op) {
 }
 
 bool X86ATTAsmParser::ParseInstruction(const StringRef &Name, MCInst &Inst) {
-  SmallVector<X86Operand, 4> Operands;
+  SmallVector<X86Operand, 8> Operands;
 
   Operands.push_back(X86Operand::CreateToken(Name));
 
index f2adc00c07d03d944f81111bf30ff0ea73232b4a..f98ee3a08338601c2a3691383d9a254f307bf9a1 100644 (file)
@@ -86,8 +86,8 @@
 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(""));
 }
 
@@ -272,18 +272,6 @@ static bool IsAssemblerInstruction(const StringRef &Name,
 
 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 {