diff options
| author | Fangrui Song <maskray@google.com> | 2018-09-30 22:31:29 +0000 | 
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2018-09-30 22:31:29 +0000 | 
| commit | 3507c6e88479866e6b057ecbfd74b8d72b8275c3 (patch) | |
| tree | cd17d63ff2fc849c31c5e17a23d7a3f630e0690a /llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp | |
| parent | 1d38c13f6e22889624df47b74bf058cf1864b392 (diff) | |
| download | bcm5719-llvm-3507c6e88479866e6b057ecbfd74b8d72b8275c3.tar.gz bcm5719-llvm-3507c6e88479866e6b057ecbfd74b8d72b8275c3.zip | |
Use the container form llvm::sort(C, ...)
There are a few leftovers in rL343163 which span two lines. This commit
changes these llvm::sort(C.begin(), C.end, ...) to llvm::sort(C, ...)
llvm-svn: 343426
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp | 9 | 
1 files changed, 4 insertions, 5 deletions
| diff --git a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp index b4da53fd974..625b354cc38 100644 --- a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp +++ b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp @@ -275,11 +275,10 @@ namespace {        write(Len);        write(Number); -      llvm::sort( -          SortedLinesByFile.begin(), SortedLinesByFile.end(), -          [](StringMapEntry<GCOVLines> *LHS, StringMapEntry<GCOVLines> *RHS) { -            return LHS->getKey() < RHS->getKey(); -          }); +      llvm::sort(SortedLinesByFile, [](StringMapEntry<GCOVLines> *LHS, +                                       StringMapEntry<GCOVLines> *RHS) { +        return LHS->getKey() < RHS->getKey(); +      });        for (auto &I : SortedLinesByFile)          I->getValue().writeOut();        write(0); | 

