mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-21 01:06:46 +00:00
Minor asm fix.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29965 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bb0a23a137
commit
c9676deb23
@ -252,7 +252,9 @@ void X86ATTAsmPrinter::printMemReference(const MachineInstr *MI, unsigned Op){
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DispSpec.isGlobalAddress() || DispSpec.isConstantPoolIndex()) {
|
if (DispSpec.isGlobalAddress() ||
|
||||||
|
DispSpec.isConstantPoolIndex() ||
|
||||||
|
DispSpec.isJumpTableIndex()) {
|
||||||
printOperand(MI, Op+3, "mem");
|
printOperand(MI, Op+3, "mem");
|
||||||
} else {
|
} else {
|
||||||
int DispVal = DispSpec.getImmedValue();
|
int DispVal = DispSpec.getImmedValue();
|
||||||
|
@ -90,7 +90,8 @@ struct X86SharedAsmPrinter : public AsmPrinter {
|
|||||||
MI->getOperand(Op+2).isRegister() &&
|
MI->getOperand(Op+2).isRegister() &&
|
||||||
(MI->getOperand(Op+3).isImmediate() ||
|
(MI->getOperand(Op+3).isImmediate() ||
|
||||||
MI->getOperand(Op+3).isGlobalAddress() ||
|
MI->getOperand(Op+3).isGlobalAddress() ||
|
||||||
MI->getOperand(Op+3).isConstantPoolIndex());
|
MI->getOperand(Op+3).isConstantPoolIndex() ||
|
||||||
|
MI->getOperand(Op+3).isJumpTableIndex());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user