Use range-based for loops to iterate over file nodes.
authorRui Ueyama <ruiu@google.com>
Thu, 5 Mar 2015 00:07:38 +0000 (00:07 +0000)
committerRui Ueyama <ruiu@google.com>
Thu, 5 Mar 2015 00:07:38 +0000 (00:07 +0000)
commit5d75b6346d34df8791a66078432df68fce11de5f
tree9a10e50819063fa1c10f9eca1e1779b2dbac6c99
parentab9b179f4f74e93b9a7c199488f18e0923af3098
Use range-based for loops to iterate over file nodes.

I converted them to non-range-based loops in r226883 and r226893
because at that moment File::parse() may have side effects and
may update the vector that the reference returned from
LinkingContext::nodes().

Now File::parse() is free from side effects. We can use range-based
loops again.

llvm-svn: 231321
lld/lib/Driver/Driver.cpp
lld/lib/Driver/WinLinkDriver.cpp