X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FTarget%2FX86%2FPrinter.cpp;h=bfaa4bd1acd30c287178a2092f8f87bdaddc95d3;hb=2adb3959f629bdacab0e47b29e52139595523236;hp=620605948661edc6a43a2ba984cbb472b5e25d6f;hpb=dbf30f7b02e23a19eaa4f7b437a1f5682e4ee74c;p=oota-llvm.git diff --git a/lib/Target/X86/Printer.cpp b/lib/Target/X86/Printer.cpp index 62060594866..bfaa4bd1acd 100644 --- a/lib/Target/X86/Printer.cpp +++ b/lib/Target/X86/Printer.cpp @@ -96,7 +96,7 @@ static void printOp(std::ostream &O, const MachineOperand &MO, const MRegisterInfo &RI) { switch (MO.getType()) { case MachineOperand::MO_VirtualRegister: - if (Value *V = MO.getVRegValue()) { + if (Value *V = MO.getVRegValueOrNull()) { O << "<" << V->getName() << ">"; return; } @@ -183,7 +183,7 @@ void X86InstrInfo::print(const MachineInstr *MI, std::ostream &O, assert(isReg(MI->getOperand(0)) && (MI->getNumOperands() == 1 || (MI->getNumOperands() == 2 && - (MI->getOperand(1).getVRegValue() || + (MI->getOperand(1).getVRegValueOrNull() || isImmediate(MI->getOperand(1))))) && "Illegal form for AddRegFrm instruction!");