1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

Minor asm fix.

llvm-svn: 29965
This commit is contained in:
Evan Cheng 2006-08-29 22:14:48 +00:00
parent 3b2d02f5cc
commit 366669c860
2 changed files with 5 additions and 2 deletions

View File

@ -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();

View File

@ -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());
}
};