mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Use SmallVectorImpl::iterator/const_iterator instead of SmallVector
to avoid specifying the vector size. llvm-svn: 185511
This commit is contained in:
parent
aaeefbaa42
commit
cb5bf5d646
@ -131,7 +131,7 @@ public:
|
||||
|
||||
/// Query whether a frame index is a scavenging frame index.
|
||||
bool isScavengingFrameIndex(int FI) const {
|
||||
for (SmallVector<ScavengedInfo, 2>::const_iterator I = Scavenged.begin(),
|
||||
for (SmallVectorImpl<ScavengedInfo>::const_iterator I = Scavenged.begin(),
|
||||
IE = Scavenged.end(); I != IE; ++I)
|
||||
if (I->FrameIndex == FI)
|
||||
return true;
|
||||
@ -141,7 +141,7 @@ public:
|
||||
|
||||
/// Get an array of scavenging frame indices.
|
||||
void getScavengingFrameIndices(SmallVectorImpl<int> &A) const {
|
||||
for (SmallVector<ScavengedInfo, 2>::const_iterator I = Scavenged.begin(),
|
||||
for (SmallVectorImpl<ScavengedInfo>::const_iterator I = Scavenged.begin(),
|
||||
IE = Scavenged.end(); I != IE; ++I)
|
||||
if (I->FrameIndex >= 0)
|
||||
A.push_back(I->FrameIndex);
|
||||
|
@ -263,10 +263,10 @@ namespace llvm {
|
||||
SmallVector<SDep, 4> Preds; // All sunit predecessors.
|
||||
SmallVector<SDep, 4> Succs; // All sunit successors.
|
||||
|
||||
typedef SmallVector<SDep, 4>::iterator pred_iterator;
|
||||
typedef SmallVector<SDep, 4>::iterator succ_iterator;
|
||||
typedef SmallVector<SDep, 4>::const_iterator const_pred_iterator;
|
||||
typedef SmallVector<SDep, 4>::const_iterator const_succ_iterator;
|
||||
typedef SmallVectorImpl<SDep>::iterator pred_iterator;
|
||||
typedef SmallVectorImpl<SDep>::iterator succ_iterator;
|
||||
typedef SmallVectorImpl<SDep>::const_iterator const_pred_iterator;
|
||||
typedef SmallVectorImpl<SDep>::const_iterator const_succ_iterator;
|
||||
|
||||
unsigned NodeNum; // Entry # of node in the node vector.
|
||||
unsigned NodeQueueId; // Queue id of node.
|
||||
|
Loading…
x
Reference in New Issue
Block a user