Use a sized enum for MachineOperandType. No functionality change

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209048 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Pete Cooper 2014-05-16 23:28:17 +00:00
parent 31c8059e5d
commit 70f8b47a65
2 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ class MCSymbol;
///
class MachineOperand {
public:
enum MachineOperandType {
enum MachineOperandType : unsigned char {
MO_Register, ///< Register operand.
MO_Immediate, ///< Immediate operand
MO_CImmediate, ///< Immediate >64bit operand
@ -65,7 +65,7 @@ public:
private:
/// OpKind - Specify what kind of operand this is. This discriminates the
/// union.
unsigned char OpKind; // MachineOperandType
MachineOperandType OpKind;
/// Subregister number for MO_Register. A value of 0 indicates the
/// MO_Register has no subReg.

View File

@ -208,7 +208,7 @@ void PPCAsmPrinter::printOperand(const MachineInstr *MI, unsigned OpNo,
}
default:
O << "<unknown operand type: " << MO.getType() << ">";
O << "<unknown operand type: " << (unsigned)MO.getType() << ">";
return;
}
}