mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +00:00
[ms-inline asm] Asm operands can map to one or more MCOperands. Therefore, add
the NumMCOperands argument to the GetMCInstOperandNum() function that is set to the number of MCOperands this asm operand mapped to. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163124 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -40,7 +40,7 @@ class MipsAsmParser : public MCTargetAsmParser {
|
||||
|
||||
unsigned GetMCInstOperandNum(unsigned Kind, MCInst &Inst,
|
||||
const SmallVectorImpl<MCParsedAsmOperand*> &Operands,
|
||||
unsigned OperandNum);
|
||||
unsigned OperandNum, unsigned &NumMCOperands);
|
||||
|
||||
public:
|
||||
MipsAsmParser(MCSubtargetInfo &sti, MCAsmParser &parser)
|
||||
@@ -104,11 +104,12 @@ public:
|
||||
unsigned MipsAsmParser::
|
||||
GetMCInstOperandNum(unsigned Kind, MCInst &Inst,
|
||||
const SmallVectorImpl<MCParsedAsmOperand*> &Operands,
|
||||
unsigned OperandNum) {
|
||||
unsigned OperandNum, unsigned &NumMCOperands) {
|
||||
assert (0 && "GetMCInstOperandNum() not supported by the Mips target.");
|
||||
// The Mips backend doesn't currently include the matcher implementation, so
|
||||
// the GetMCInstOperandNumImpl() is undefined. This is a temporary
|
||||
// work around.
|
||||
NumMCOperands = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user