diff options
| author | David Blaikie <dblaikie@gmail.com> | 2014-11-19 03:06:06 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2014-11-19 03:06:06 +0000 |
| commit | 13156b689e67e2857769f96adad141203d844e16 (patch) | |
| tree | dcb4058a1a9dd9a0466a5d6ee8eacefc8981358d /clang/tools/diagtool/ListWarnings.cpp | |
| parent | 8e6cf9e5791083103ea711200b8315520c502adb (diff) | |
| download | bcm5719-llvm-13156b689e67e2857769f96adad141203d844e16.tar.gz bcm5719-llvm-13156b689e67e2857769f96adad141203d844e16.zip | |
Standardize on StringMap::insert, removing uses of StringMap::GetOrCreateValue.
llvm-svn: 222306
Diffstat (limited to 'clang/tools/diagtool/ListWarnings.cpp')
| -rw-r--r-- | clang/tools/diagtool/ListWarnings.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/tools/diagtool/ListWarnings.cpp b/clang/tools/diagtool/ListWarnings.cpp index 16837a15849..5a26fc22827 100644 --- a/clang/tools/diagtool/ListWarnings.cpp +++ b/clang/tools/diagtool/ListWarnings.cpp @@ -73,7 +73,7 @@ int ListWarnings::run(unsigned int argc, char **argv, llvm::raw_ostream &out) { Unflagged.push_back(entry); else { Flagged.push_back(entry); - flagHistogram.GetOrCreateValue(entry.Flag).getValue().push_back(diagID); + flagHistogram[entry.Flag].push_back(diagID); } } @@ -99,7 +99,7 @@ int ListWarnings::run(unsigned int argc, char **argv, llvm::raw_ostream &out) { << llvm::format("%.4g", avgDiagsPerFlag) << '\n'; out << " Number in -Wpedantic (not covered by other -W flags): " - << flagHistogram.GetOrCreateValue("pedantic").getValue().size() + << flagHistogram["pedantic"].size() << '\n'; out << '\n'; |

