mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
TableGen: PointerLikeRegClass can be accepted to operand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124271 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -354,7 +354,8 @@ static void X86PopulateOperands(
|
||||
const CGIOperandList::OperandInfo &operandInfo = inst.Operands[index];
|
||||
Record &rec = *operandInfo.Rec;
|
||||
|
||||
if (X86TypeFromOpName(operandTypes[index], rec.getName())) {
|
||||
if (X86TypeFromOpName(operandTypes[index], rec.getName()) &&
|
||||
!rec.isSubClassOf("PointerLikeRegClass")) {
|
||||
errs() << "Operand type: " << rec.getName().c_str() << "\n";
|
||||
errs() << "Operand name: " << operandInfo.Name.c_str() << "\n";
|
||||
errs() << "Instruction name: " << inst.TheDef->getName().c_str() << "\n";
|
||||
|
||||
Reference in New Issue
Block a user