Add missed operands types

llvm-svn: 76009
This commit is contained in:
Anton Korobeynikov 2009-07-16 14:17:07 +00:00
parent 5fd5c3efb6
commit 2799032a45
1 changed files with 6 additions and 0 deletions

View 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);