[llvm-commits] CVS: llvm/lib/Bytecode/Reader/ReadInst.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Oct 13 14:40:05 PDT 2002


Changes in directory llvm/lib/Bytecode/Reader:

ReadInst.cpp updated: 1.38 -> 1.39

---
Log message:

  - Rename Instruction::First*Op to *OpsBegin, and Num*Ops to *OpsEnd to
    reflect the fact that it's a range being defined.



---
Diffs of the changes:

Index: llvm/lib/Bytecode/Reader/ReadInst.cpp
diff -u llvm/lib/Bytecode/Reader/ReadInst.cpp:1.38 llvm/lib/Bytecode/Reader/ReadInst.cpp:1.39
--- llvm/lib/Bytecode/Reader/ReadInst.cpp:1.38	Fri Sep 13 17:28:43 2002
+++ llvm/lib/Bytecode/Reader/ReadInst.cpp	Sun Oct 13 14:39:10 2002
@@ -122,8 +122,8 @@
   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));





More information about the llvm-commits mailing list