mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
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:
parent
31c8059e5d
commit
70f8b47a65
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user