summaryrefslogtreecommitdiff
path: root/tools/arcmt-test
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-07-07 07:47:20 +0000
committerAlp Toker <alp@nuanti.com>2014-07-07 07:47:20 +0000
commit57b86d027b2c471918bb22f31af23b0e0418110e (patch)
tree4950f3889a8e09a54ee7ac2e34f35a234df1f5e6 /tools/arcmt-test
parent032b0dafdf0458ca52c3d74dc97cdb4d92de5aa6 (diff)
downloadclang-57b86d027b2c471918bb22f31af23b0e0418110e.tar.gz
Peel away old-style file remapping typedefs and cruft
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212438 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/arcmt-test')
-rw-r--r--tools/arcmt-test/arcmt-test.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/arcmt-test/arcmt-test.cpp b/tools/arcmt-test/arcmt-test.cpp
index 27da45fffa..a59a869c22 100644
--- a/tools/arcmt-test/arcmt-test.cpp
+++ b/tools/arcmt-test/arcmt-test.cpp
@@ -139,10 +139,8 @@ static void printResult(FileRemapper &remapper, raw_ostream &OS) {
PreprocessorOptions PPOpts;
remapper.applyMappings(PPOpts);
// The changed files will be in memory buffers, print them.
- for (unsigned i = 0, e = PPOpts.RemappedFileBuffers.size(); i != e; ++i) {
- const llvm::MemoryBuffer *mem = PPOpts.RemappedFileBuffers[i].second;
- OS << mem->getBuffer();
- }
+ for (const auto &RB : PPOpts.RemappedFileBuffers)
+ OS << RB.second->getBuffer();
}
static bool performTransformations(StringRef resourcesPath,