[llvm-commits] CVS: llvm/include/llvm/Instruction.h
Chris Lattner
sabre at nondot.org
Tue Apr 17 11:04:12 PDT 2007
Changes in directory llvm/include/llvm:
Instruction.h updated: 1.84 -> 1.85
---
Log message:
Instruction:: Next/Prev accessors are now private
---
Diffs of the changes: (+8 -7)
Instruction.h | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
Index: llvm/include/llvm/Instruction.h
diff -u llvm/include/llvm/Instruction.h:1.84 llvm/include/llvm/Instruction.h:1.85
--- llvm/include/llvm/Instruction.h:1.84 Mon Apr 16 22:26:42 2007
+++ llvm/include/llvm/Instruction.h Tue Apr 17 13:03:55 2007
@@ -82,13 +82,6 @@
inline const BasicBlock *getParent() const { return Parent; }
inline BasicBlock *getParent() { return Parent; }
- // getNext/Prev - Return the next or previous instruction in the list. The
- // last node in the list is a terminator instruction.
- Instruction *getNext() { return Next; }
- const Instruction *getNext() const { return Next; }
- Instruction *getPrev() { return Prev; }
- const Instruction *getPrev() const { return Prev; }
-
/// removeFromParent - This method unlinks 'this' from the containing basic
/// block, but does not delete it.
///
@@ -231,6 +224,14 @@
#define LAST_OTHER_INST(N) OtherOpsEnd = N+1
#include "llvm/Instruction.def"
};
+
+private:
+ // getNext/Prev - Return the next or previous instruction in the list. The
+ // last node in the list is a terminator instruction.
+ Instruction *getNext() { return Next; }
+ const Instruction *getNext() const { return Next; }
+ Instruction *getPrev() { return Prev; }
+ const Instruction *getPrev() const { return Prev; }
};
} // End llvm namespace
More information about the llvm-commits
mailing list