mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
Minor asm fix.
llvm-svn: 29965
This commit is contained in:
parent
3b2d02f5cc
commit
366669c860
@ -252,7 +252,9 @@ void X86ATTAsmPrinter::printMemReference(const MachineInstr *MI, unsigned Op){
|
||||
return;
|
||||
}
|
||||
|
||||
if (DispSpec.isGlobalAddress() || DispSpec.isConstantPoolIndex()) {
|
||||
if (DispSpec.isGlobalAddress() ||
|
||||
DispSpec.isConstantPoolIndex() ||
|
||||
DispSpec.isJumpTableIndex()) {
|
||||
printOperand(MI, Op+3, "mem");
|
||||
} else {
|
||||
int DispVal = DispSpec.getImmedValue();
|
||||
|
@ -90,7 +90,8 @@ struct X86SharedAsmPrinter : public AsmPrinter {
|
||||
MI->getOperand(Op+2).isRegister() &&
|
||||
(MI->getOperand(Op+3).isImmediate() ||
|
||||
MI->getOperand(Op+3).isGlobalAddress() ||
|
||||
MI->getOperand(Op+3).isConstantPoolIndex());
|
||||
MI->getOperand(Op+3).isConstantPoolIndex() ||
|
||||
MI->getOperand(Op+3).isJumpTableIndex());
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user