llvm-mc/AsmMatcher: Tweaks in response to feedback.

llvm-svn: 78404
This commit is contained in:
Daniel Dunbar 2009-08-07 20:33:39 +00:00
parent 5583632adf
commit 15b8037034
2 changed files with 3 additions and 15 deletions

View 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));

View 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 {