[llvm-commits] CVS: llvm/lib/VMCore/BasicBlock.cpp Constants.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Oct 13 14:40:22 PDT 2002
Changes in directory llvm/lib/VMCore:
BasicBlock.cpp updated: 1.27 -> 1.28
Constants.cpp updated: 1.30 -> 1.31
---
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/VMCore/BasicBlock.cpp
diff -u llvm/lib/VMCore/BasicBlock.cpp:1.27 llvm/lib/VMCore/BasicBlock.cpp:1.28
--- llvm/lib/VMCore/BasicBlock.cpp:1.27 Tue Oct 8 16:36:34 2002
+++ llvm/lib/VMCore/BasicBlock.cpp Sun Oct 13 14:39:16 2002
@@ -19,7 +19,7 @@
// instruction list. This is not a real instruction.
//
struct DummyInst : public Instruction {
- DummyInst() : Instruction(Type::VoidTy, NumOtherOps) {
+ DummyInst() : Instruction(Type::VoidTy, OtherOpsEnd) {
// This should not be garbage monitored.
LeakDetector::removeGarbageObject(this);
}
@@ -33,7 +33,7 @@
// Methods for support type inquiry through isa, cast, and dyn_cast...
static inline bool classof(const DummyInst *) { return true; }
static inline bool classof(const Instruction *I) {
- return I->getOpcode() == NumOtherOps;
+ return I->getOpcode() == OtherOpsEnd;
}
static inline bool classof(const Value *V) {
return isa<Instruction>(V) && classof(cast<Instruction>(V));
Index: llvm/lib/VMCore/Constants.cpp
diff -u llvm/lib/VMCore/Constants.cpp:1.30 llvm/lib/VMCore/Constants.cpp:1.31
--- llvm/lib/VMCore/Constants.cpp:1.30 Wed Oct 9 18:12:25 2002
+++ llvm/lib/VMCore/Constants.cpp Sun Oct 13 14:39:16 2002
@@ -634,8 +634,8 @@
// Its not in the table so create a new one and put it in the table.
// Check the operands for consistency first
- assert((Opcode >= Instruction::FirstBinaryOp &&
- Opcode < Instruction::NumBinaryOps) &&
+ assert((Opcode >= Instruction::BinaryOpsBegin &&
+ Opcode < Instruction::BinaryOpsEnd) &&
"Invalid opcode in binary constant expression");
assert(C1->getType() == C2->getType() &&
More information about the llvm-commits
mailing list