Implemented functions for emitting prologues and epilogues;
[oota-llvm.git] / lib / Target / X86 / Printer.cpp
index 620605948661edc6a43a2ba984cbb472b5e25d6f..bfaa4bd1acd30c287178a2092f8f87bdaddc95d3 100644 (file)
@@ -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!");