summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2014-12-01 18:46:43 +0000
committerPete Cooper <peter_cooper@apple.com>2014-12-01 18:46:43 +0000
commit178e6548f59ac08c566d2e24be7541e2af8a27bc (patch)
tree27afae5ec0a8b5390cdf0df29e1af09ccb9d6452
parentfb6eeb74c58a38309d71816ffea1c1ac70e25fa3 (diff)
downloadbcm5719-llvm-178e6548f59ac08c566d2e24be7541e2af8a27bc.tar.gz
bcm5719-llvm-178e6548f59ac08c566d2e24be7541e2af8a27bc.zip
Use C++ typed enums instead of 'unsigned char' for MCInst Kind. NFC.
This makes it much easier to see the value of operands in the debugger. llvm-svn: 223060
-rw-r--r--llvm/include/llvm/MC/MCInst.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/MC/MCInst.h b/llvm/include/llvm/MC/MCInst.h
index 751d61563d2..25cd5ccb08f 100644
--- a/llvm/include/llvm/MC/MCInst.h
+++ b/llvm/include/llvm/MC/MCInst.h
@@ -31,7 +31,7 @@ class MCInst;
/// MCOperand - Instances of this class represent operands of the MCInst class.
/// This is a simple discriminated union.
class MCOperand {
- enum MachineOperandType {
+ enum MachineOperandType : unsigned char {
kInvalid, ///< Uninitialized.
kRegister, ///< Register operand.
kImmediate, ///< Immediate operand.
@@ -39,7 +39,7 @@ class MCOperand {
kExpr, ///< Relocatable immediate operand.
kInst ///< Sub-instruction operand.
};
- unsigned char Kind;
+ MachineOperandType Kind;
union {
unsigned RegVal;
OpenPOWER on IntegriCloud