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:
Evan Cheng 2006-08-29 22:14:48 +00:00
parent bb0a23a137
commit c9676deb23
2 changed files with 5 additions and 2 deletions

View File

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

View File

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