summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2014-05-16 23:28:17 +0000
committerPete Cooper <peter_cooper@apple.com>2014-05-16 23:28:17 +0000
commit70f8b47a650897f7483f7dbb0b1bc3888350dbc3 (patch)
treee5e283a422973edad899db23db84fb5d06f525bf /include
parent31c8059e5d8575e9f8c92c60ccaf08dbc35657d1 (diff)
downloadllvm-70f8b47a650897f7483f7dbb0b1bc3888350dbc3.tar.gz
llvm-70f8b47a650897f7483f7dbb0b1bc3888350dbc3.tar.bz2
llvm-70f8b47a650897f7483f7dbb0b1bc3888350dbc3.tar.xz
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/MachineOperand.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineOperand.h b/include/llvm/CodeGen/MachineOperand.h
index 39fa411b3c..2eb18c4554 100644
--- a/include/llvm/CodeGen/MachineOperand.h
+++ b/include/llvm/CodeGen/MachineOperand.h
@@ -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.