mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 18:04:59 +00:00
eliminate a pair of really inefficient methods now that noone uses them
llvm-svn: 11579
This commit is contained in:
parent
e672426e5d
commit
34f3bce70c
@ -79,12 +79,6 @@ public:
|
|||||||
unsigned size() const { return Insts.size(); }
|
unsigned size() const { return Insts.size(); }
|
||||||
bool empty() const { return Insts.empty(); }
|
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& front() { return Insts.front(); }
|
||||||
MachineInstr& back() { return Insts.back(); }
|
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; }
|
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
|
} // End llvm namespace
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user