diff options
author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2017-06-21 23:19:47 +0000 |
---|---|---|
committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2017-06-21 23:19:47 +0000 |
commit | 72208a822615d458220858a6264a62e64635fcc9 (patch) | |
tree | f344dd4d8344fc79ee51056aa303e32908225f10 /llvm/lib/ProfileData/Coverage/CoverageMapping.cpp | |
parent | 88d9e37ec84c86942284d69f3794b824a99e5fab (diff) | |
download | llvm-72208a822615d458220858a6264a62e64635fcc9.zip llvm-72208a822615d458220858a6264a62e64635fcc9.tar.gz llvm-72208a822615d458220858a6264a62e64635fcc9.tar.bz2 |
[ProfileData, Support] Fix some Clang-tidy modernize-use-using and Include What You Use warnings; other minor fixes (NFC).
llvm-svn: 305969
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMapping.cpp')
-rw-r--r-- | llvm/lib/ProfileData/Coverage/CoverageMapping.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp b/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp index 9539729..4534e08 100644 --- a/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp +++ b/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp @@ -1,4 +1,4 @@ -//===- CoverageMapping.cpp - Code coverage mapping support ------*- C++ -*-===// +//===- CoverageMapping.cpp - Code coverage mapping support ----------------===// // // The LLVM Compiler Infrastructure // @@ -303,8 +303,8 @@ namespace { /// An instantiation set is a collection of functions that have the same source /// code, ie, template functions specializations. class FunctionInstantiationSetCollector { - typedef DenseMap<std::pair<unsigned, unsigned>, - std::vector<const FunctionRecord *>> MapT; + using MapT = DenseMap<std::pair<unsigned, unsigned>, + std::vector<const FunctionRecord *>>; MapT InstantiatedFunctions; public: @@ -318,7 +318,6 @@ public: } MapT::iterator begin() { return InstantiatedFunctions.begin(); } - MapT::iterator end() { return InstantiatedFunctions.end(); } }; |