diff options
Diffstat (limited to 'lib/TableGen/Main.cpp')
-rw-r--r-- | lib/TableGen/Main.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/TableGen/Main.cpp b/lib/TableGen/Main.cpp index 2578cc2..c440451 100644 --- a/lib/TableGen/Main.cpp +++ b/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(); |