aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineBasicBlock.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-18 16:45:22 +0000
committerChris Lattner <sabre@nondot.org>2004-02-18 16:45:22 +0000
commit9b2c31c5cb2360cbef6b12fb411727e5a24d604c (patch)
tree4e741a1a6b5d2a63eae8661909f6f39967bce669 /include/llvm/CodeGen/MachineBasicBlock.h
parente6d04f1a99f522be95ea45c4acb614f7e366d0d7 (diff)
eliminate a pair of really inefficient methods now that noone uses them
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11579 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineBasicBlock.h')
-rw-r--r--include/llvm/CodeGen/MachineBasicBlock.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/include/llvm/CodeGen/MachineBasicBlock.h b/include/llvm/CodeGen/MachineBasicBlock.h
index 3469a5e9d9..9399d56b76 100644
--- a/include/llvm/CodeGen/MachineBasicBlock.h
+++ b/include/llvm/CodeGen/MachineBasicBlock.h
@@ -79,12 +79,6 @@ public:
unsigned size() const { return Insts.size(); }
bool empty() const { return Insts.empty(); }
- // This is a really inefficient way of accessing a basic
- // block. These methods will be removed when all of their uses are
- // eliminated.
- inline const MachineInstr& operator[](unsigned i) const DEPRECATED;
- inline MachineInstr& operator[](unsigned i) DEPRECATED;
-
MachineInstr& front() { return Insts.front(); }
MachineInstr& back() { return Insts.back(); }
@@ -122,21 +116,6 @@ private: // Methods used to maintain doubly linked list of blocks...
void setNext(MachineBasicBlock *N) { Next = N; }
};
-const MachineInstr& MachineBasicBlock::operator[](unsigned i) const
-{
- const_iterator it = Insts.begin();
- std::advance(it, i);
- return *it;
-}
-
-MachineInstr& MachineBasicBlock::operator[](unsigned i)
-{
- iterator it = Insts.begin();
- std::advance(it, i);
- return *it;
-}
-
-
} // End llvm namespace
#endif