summaryrefslogtreecommitdiff
path: root/include/llvm/Instruction.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-04-17 18:03:55 +0000
committerChris Lattner <sabre@nondot.org>2007-04-17 18:03:55 +0000
commit97f89e688f335951afc75ac3eeefc347185f9d95 (patch)
treec62a061c9ca164743585bf462dc345e04390eef9 /include/llvm/Instruction.h
parent3c30d10b0484349d837d21490181600f5ebee6cd (diff)
downloadllvm-97f89e688f335951afc75ac3eeefc347185f9d95.tar.gz
llvm-97f89e688f335951afc75ac3eeefc347185f9d95.tar.bz2
llvm-97f89e688f335951afc75ac3eeefc347185f9d95.tar.xz
Instruction:: Next/Prev accessors are now private
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36204 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instruction.h')
-rw-r--r--include/llvm/Instruction.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h
index dbf41f179f..8da89e2f38 100644
--- a/include/llvm/Instruction.h
+++ b/include/llvm/Instruction.h
@@ -82,13 +82,6 @@ public:
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 @@ public:
#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