summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Reader/InstructionReader.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-13 19:39:16 +0000
committerChris Lattner <sabre@nondot.org>2002-10-13 19:39:16 +0000
commit69ce8674b5edeb6a1c8290cb7eefcd44ab28f3a2 (patch)
tree298416246806b96f35aa0f2499bd3d891b9683b0 /llvm/lib/Bytecode/Reader/InstructionReader.cpp
parentb0f38789dafe7d713f5a4b4f34fb8c20eeb6e7b8 (diff)
downloadbcm5719-llvm-69ce8674b5edeb6a1c8290cb7eefcd44ab28f3a2.tar.gz
bcm5719-llvm-69ce8674b5edeb6a1c8290cb7eefcd44ab28f3a2.zip
- Rename Instruction::First*Op to *OpsBegin, and Num*Ops to *OpsEnd to
reflect the fact that it's a range being defined. llvm-svn: 4147
Diffstat (limited to 'llvm/lib/Bytecode/Reader/InstructionReader.cpp')
-rw-r--r--llvm/lib/Bytecode/Reader/InstructionReader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bytecode/Reader/InstructionReader.cpp b/llvm/lib/Bytecode/Reader/InstructionReader.cpp
index 40360991f5c..a4750b0e590 100644
--- a/llvm/lib/Bytecode/Reader/InstructionReader.cpp
+++ b/llvm/lib/Bytecode/Reader/InstructionReader.cpp
@@ -122,8 +122,8 @@ bool BytecodeParser::ParseInstruction(const uchar *&Buf, const uchar *EndBuf,
if (ParseRawInst(Buf, EndBuf, Raw))
return true;
- if (Raw.Opcode >= Instruction::FirstBinaryOp &&
- Raw.Opcode < Instruction::NumBinaryOps && Raw.NumOperands == 2) {
+ if (Raw.Opcode >= Instruction::BinaryOpsBegin &&
+ Raw.Opcode < Instruction::BinaryOpsEnd && Raw.NumOperands == 2) {
Res = BinaryOperator::create((Instruction::BinaryOps)Raw.Opcode,
getValue(Raw.Ty, Raw.Arg1),
getValue(Raw.Ty, Raw.Arg2));
OpenPOWER on IntegriCloud