Add missed operands types
authorAnton Korobeynikov <asl@math.spbu.ru>
Thu, 16 Jul 2009 14:17:07 +0000 (14:17 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Thu, 16 Jul 2009 14:17:07 +0000 (14:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76009 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp

index af3ce1780da6bc3052144064ee6e0c11282a2ea6..9ec58816df4982249c89e34396f40c34f8753a81 100644 (file)
@@ -190,6 +190,12 @@ void SystemZAsmPrinter::printMachineInstruction(const MachineInstr *MI) {
 void SystemZAsmPrinter::printPCRelImmOperand(const MachineInstr *MI, int OpNum) {
   const MachineOperand &MO = MI->getOperand(OpNum);
   switch (MO.getType()) {
+  case MachineOperand::MO_Immediate:
+    O << MO.getImm();
+    return;
+  case MachineOperand::MO_MachineBasicBlock:
+    printBasicBlockLabel(MO.getMBB(), false, false, VerboseAsm);
+    return;
   case MachineOperand::MO_GlobalAddress: {
     const GlobalValue *GV = MO.getGlobal();
     std::string Name = Mang->getValueName(GV);