mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-16 12:24:44 +00:00
llvm-mc/AsmMatcher: Tweaks in response to feedback.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78404 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0d5bd59553
commit
2724915c17
@ -379,7 +379,7 @@ bool X86ATTAsmParser::ParseMemOperand(X86Operand &Op) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool X86ATTAsmParser::ParseInstruction(const StringRef &Name, MCInst &Inst) {
|
bool X86ATTAsmParser::ParseInstruction(const StringRef &Name, MCInst &Inst) {
|
||||||
SmallVector<X86Operand, 4> Operands;
|
SmallVector<X86Operand, 8> Operands;
|
||||||
|
|
||||||
Operands.push_back(X86Operand::CreateToken(Name));
|
Operands.push_back(X86Operand::CreateToken(Name));
|
||||||
|
|
||||||
|
@ -86,8 +86,8 @@
|
|||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
cl::opt<std::string>
|
static cl::opt<std::string>
|
||||||
MatchOneInstr("match-one-instr", cl::desc("Match only the named instruction"),
|
MatchOneInstr("match-one-instr", cl::desc("Match only the named instruction"),
|
||||||
cl::init(""));
|
cl::init(""));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -272,18 +272,6 @@ static bool IsAssemblerInstruction(const StringRef &Name,
|
|||||||
|
|
||||||
namespace {
|
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 InstructionInfo {
|
||||||
struct Operand {
|
struct Operand {
|
||||||
enum {
|
enum {
|
||||||
|
Loading…
Reference in New Issue
Block a user