diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-12-11 07:04:54 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-12-11 07:04:54 +0000 |
commit | 5fcc5abc1f32014b45502860a536dd2ef48966d0 (patch) | |
tree | 9d894fb48ebff1896c3b6cc17ad41b09ee3331bb /llvm/lib/TableGen/Main.cpp | |
parent | 82a4a35d916506600e2381e926f5ee961cd241c6 (diff) | |
download | llvm-5fcc5abc1f32014b45502860a536dd2ef48966d0.zip llvm-5fcc5abc1f32014b45502860a536dd2ef48966d0.tar.gz llvm-5fcc5abc1f32014b45502860a536dd2ef48966d0.tar.bz2 |
Use range-based for loops. NFC
llvm-svn: 224005
Diffstat (limited to 'llvm/lib/TableGen/Main.cpp')
-rw-r--r-- | llvm/lib/TableGen/Main.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/TableGen/Main.cpp b/llvm/lib/TableGen/Main.cpp index 2578cc2..c440451 100644 --- a/llvm/lib/TableGen/Main.cpp +++ b/llvm/lib/TableGen/Main.cpp @@ -64,11 +64,8 @@ static int createDependencyFile(const TGParser &Parser, const char *argv0) { return 1; } DepOut.os() << OutputFilename << ":"; - const TGLexer::DependenciesMapTy &Dependencies = Parser.getDependencies(); - for (TGLexer::DependenciesMapTy::const_iterator I = Dependencies.begin(), - E = Dependencies.end(); - I != E; ++I) { - DepOut.os() << " " << I->first; + for (const auto &Dep : Parser.getDependencies()) { + DepOut.os() << ' ' << Dep.first; } DepOut.os() << "\n"; DepOut.keep(); |