diff options
author | Chris Lattner <sabre@nondot.org> | 2002-10-13 19:39:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-10-13 19:39:16 +0000 |
commit | 0b16ae209a1d0876a7ea6800bb567d925443cba3 (patch) | |
tree | efd67aacd32694e22c88507aa97287461bfd0910 /lib/VMCore | |
parent | f6c52db3715d53e195c5a7429987deba71ed0af7 (diff) | |
download | external_llvm-0b16ae209a1d0876a7ea6800bb567d925443cba3.zip external_llvm-0b16ae209a1d0876a7ea6800bb567d925443cba3.tar.gz external_llvm-0b16ae209a1d0876a7ea6800bb567d925443cba3.tar.bz2 |
- Rename Instruction::First*Op to *OpsBegin, and Num*Ops to *OpsEnd to
reflect the fact that it's a range being defined.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4147 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/BasicBlock.cpp | 4 | ||||
-rw-r--r-- | lib/VMCore/Constants.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/VMCore/BasicBlock.cpp b/lib/VMCore/BasicBlock.cpp index 667346c..6ddcc08 100644 --- a/lib/VMCore/BasicBlock.cpp +++ b/lib/VMCore/BasicBlock.cpp @@ -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 @@ struct DummyInst : public Instruction { // 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)); diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index d0413f1..8464c43 100644 --- a/lib/VMCore/Constants.cpp +++ b/lib/VMCore/Constants.cpp @@ -634,8 +634,8 @@ ConstantExpr *ConstantExpr::get(unsigned Opcode, Constant *C1, Constant *C2) { // 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() && |