comparison lib/Target/MSP430/MSP430MCInstLower.cpp @ 121:803732b1fca8

LLVM 5.0
author kono
date Fri, 27 Oct 2017 17:07:41 +0900
parents afa8332a0e37
children c2174574ed3a
comparison
equal deleted inserted replaced
120:1172e4bd9c6f 121:803732b1fca8
117 const MachineOperand &MO = MI->getOperand(i); 117 const MachineOperand &MO = MI->getOperand(i);
118 118
119 MCOperand MCOp; 119 MCOperand MCOp;
120 switch (MO.getType()) { 120 switch (MO.getType()) {
121 default: 121 default:
122 MI->dump(); 122 MI->print(errs());
123 llvm_unreachable("unknown operand type"); 123 llvm_unreachable("unknown operand type");
124 case MachineOperand::MO_Register: 124 case MachineOperand::MO_Register:
125 // Ignore all implicit register operands. 125 // Ignore all implicit register operands.
126 if (MO.isImplicit()) continue; 126 if (MO.isImplicit()) continue;
127 MCOp = MCOperand::createReg(MO.getReg()); 127 MCOp = MCOperand::createReg(MO.getReg());