mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-03 11:24:18 +00:00
[ms-inline asm] Add the convertToMapAndConstraints() function that is used to
map constraints and MCInst operands to inline asm operands. This replaces the getMCInstOperandNum() function. The logic to determine the constraints are not in place, so we still default to a register constraint (i.e., "r"). Also, we no longer build the MCInst but rather return just the opcode to get the MCInstrDesc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164979 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -7480,8 +7480,10 @@ MatchAndEmitInstruction(SMLoc IDLoc,
|
||||
unsigned Kind;
|
||||
unsigned ErrorInfo;
|
||||
unsigned MatchResult;
|
||||
|
||||
MatchResult = MatchInstructionImpl(Operands, Kind, Inst, ErrorInfo);
|
||||
SmallVector<std::pair< unsigned, std::string >, 4> MapAndConstraints;
|
||||
MatchResult = MatchInstructionImpl(Operands, Kind, Inst,
|
||||
MapAndConstraints, ErrorInfo,
|
||||
/*matchingInlineAsm*/ false);
|
||||
switch (MatchResult) {
|
||||
default: break;
|
||||
case Match_Success:
|
||||
|
Reference in New Issue
Block a user