diff options
| author | Craig Topper <craig.topper@gmail.com> | 2013-07-04 01:31:24 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2013-07-04 01:31:24 +0000 |
| commit | af0dea13479bbd1eacfb1404ac09c729174c32fe (patch) | |
| tree | 993847ade847808ef85e08533460c7b149dda80f /llvm/lib/Transforms/Instrumentation | |
| parent | a24dc7fa8c82651be2d74a8f5e09d8fa06e4f3ca (diff) | |
| download | bcm5719-llvm-af0dea13479bbd1eacfb1404ac09c729174c32fe.tar.gz bcm5719-llvm-af0dea13479bbd1eacfb1404ac09c729174c32fe.zip | |
Use SmallVectorImpl::iterator/const_iterator instead of SmallVector to avoid specifying the vector size.
llvm-svn: 185606
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation')
| -rw-r--r-- | llvm/lib/Transforms/Instrumentation/BlackList.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/BlackList.cpp b/llvm/lib/Transforms/Instrumentation/BlackList.cpp index 39de4b0401c..ce3acbc9800 100644 --- a/llvm/lib/Transforms/Instrumentation/BlackList.cpp +++ b/llvm/lib/Transforms/Instrumentation/BlackList.cpp @@ -43,7 +43,7 @@ BlackList::BlackList(const StringRef Path) { SmallVector<StringRef, 16> Lines; SplitString(File.take()->getBuffer(), Lines, "\n\r"); StringMap<std::string> Regexps; - for (SmallVector<StringRef, 16>::iterator I = Lines.begin(), E = Lines.end(); + for (SmallVectorImpl<StringRef>::iterator I = Lines.begin(), E = Lines.end(); I != E; ++I) { // Ignore empty lines and lines starting with "#" if (I->empty() || I->startswith("#")) diff --git a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp index 06a0f2645e9..0f700ca909e 100644 --- a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp +++ b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp @@ -271,7 +271,7 @@ namespace { StringKeySort Sorter; std::sort(SortedLinesByFile.begin(), SortedLinesByFile.end(), Sorter); - for (SmallVector<StringMapEntry<GCOVLines *> *, 32>::iterator + for (SmallVectorImpl<StringMapEntry<GCOVLines *> *>::iterator I = SortedLinesByFile.begin(), E = SortedLinesByFile.end(); I != E; ++I) (*I)->getValue()->writeOut(); |

