mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 23:32:27 +00:00
Use SmallVectorImpl::iterator/const_iterator instead of SmallVector to avoid specifying the vector size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185509 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
01eb99af2f
commit
40c744ee33
@ -220,7 +220,7 @@ void LexicalScopes::constructScopeNest(LexicalScope *Scope) {
|
||||
LexicalScope *WS = WorkStack.back();
|
||||
const SmallVectorImpl<LexicalScope *> &Children = WS->getChildren();
|
||||
bool visitedChildren = false;
|
||||
for (SmallVector<LexicalScope *, 4>::const_iterator SI = Children.begin(),
|
||||
for (SmallVectorImpl<LexicalScope *>::const_iterator SI = Children.begin(),
|
||||
SE = Children.end(); SI != SE; ++SI) {
|
||||
LexicalScope *ChildScope = *SI;
|
||||
if (!ChildScope->getDFSOut()) {
|
||||
@ -280,7 +280,7 @@ getMachineBasicBlocks(DebugLoc DL,
|
||||
}
|
||||
|
||||
SmallVectorImpl<InsnRange> &InsnRanges = Scope->getRanges();
|
||||
for (SmallVector<InsnRange, 4>::iterator I = InsnRanges.begin(),
|
||||
for (SmallVectorImpl<InsnRange>::iterator I = InsnRanges.begin(),
|
||||
E = InsnRanges.end(); I != E; ++I) {
|
||||
InsnRange &R = *I;
|
||||
MBBs.insert(R.first->getParent());
|
||||
|
Loading…
x
Reference in New Issue
Block a user