diff options
| -rw-r--r-- | clang-tools-extra/include-fixer/SymbolIndexManager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang-tools-extra/include-fixer/SymbolIndexManager.cpp b/clang-tools-extra/include-fixer/SymbolIndexManager.cpp index 1800fab4199..70b143f7428 100644 --- a/clang-tools-extra/include-fixer/SymbolIndexManager.cpp +++ b/clang-tools-extra/include-fixer/SymbolIndexManager.cpp @@ -9,6 +9,7 @@ #include "SymbolIndexManager.h" #include "find-all-symbols/SymbolInfo.h" +#include "llvm/ADT/DenseMap.h" #include "llvm/ADT/SmallVector.h" #include "llvm/Support/Debug.h" @@ -22,7 +23,7 @@ using clang::find_all_symbols::SymbolInfo; /// Sorts and uniques SymbolInfos based on the popularity info in SymbolInfo. static void rankByPopularity(std::vector<SymbolInfo> &Symbols) { // First collect occurrences per header file. - std::map<llvm::StringRef, unsigned> HeaderPopularity; + llvm::DenseMap<llvm::StringRef, unsigned> HeaderPopularity; for (const SymbolInfo &Symbol : Symbols) { unsigned &Popularity = HeaderPopularity[Symbol.getFilePath()]; Popularity = std::max(Popularity, Symbol.getNumOccurrences()); |

