summaryrefslogtreecommitdiffstats
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
commit0d4ea975ef8b44798c4bcc834dbf6f9b8a2b5f97 (patch)
treea95c2a7fa2e6424e774129a70770394cdfeb6532
parentfdcd71019941e76fc1b2a8ebf3aae112e2295d60 (diff)
downloadbcm5719-llvm-0d4ea975ef8b44798c4bcc834dbf6f9b8a2b5f97.tar.gz
bcm5719-llvm-0d4ea975ef8b44798c4bcc834dbf6f9b8a2b5f97.zip
Use a sized enum for MachineOperandType. No functionality change
llvm-svn: 209048
-rw-r--r--llvm/include/llvm/CodeGen/MachineOperand.h4
-rw-r--r--llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineOperand.h b/llvm/include/llvm/CodeGen/MachineOperand.h
index 39fa411b3c9..2eb18c4554e 100644
--- a/llvm/include/llvm/CodeGen/MachineOperand.h
+++ b/llvm/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.
diff --git a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
index ac5c7f0c9bb..2174b18715f 100644
--- a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
+++ b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
@@ -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;
}
}
OpenPOWER on IntegriCloud