aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/BasicBlock.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
commit0b16ae209a1d0876a7ea6800bb567d925443cba3 (patch)
treeefd67aacd32694e22c88507aa97287461bfd0910 /lib/VMCore/BasicBlock.cpp
parentf6c52db3715d53e195c5a7429987deba71ed0af7 (diff)
downloadexternal_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/BasicBlock.cpp')
-rw-r--r--lib/VMCore/BasicBlock.cpp4
1 files changed, 2 insertions, 2 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));