Merge pull request #19292 from jrose-apple/get-out-the-map

Minor improvements to the use of StringMap/StringSet
This commit is contained in:
Jordan Rose
2018-09-14 10:52:59 -07:00
committed by GitHub
13 changed files with 27 additions and 57 deletions

View File

@@ -31,13 +31,13 @@ class SourceManager {
unsigned CodeCompletionOffset;
/// Associates buffer identifiers to buffer IDs.
llvm::StringMap<unsigned> BufIdentIDMap;
llvm::DenseMap<StringRef, unsigned> BufIdentIDMap;
/// A cache mapping buffer identifiers to vfs Status entries.
///
/// This is as much a hack to prolong the lifetime of status objects as it is
/// to speed up stats.
mutable llvm::StringMap<clang::vfs::Status> StatusCache;
mutable llvm::DenseMap<StringRef, clang::vfs::Status> StatusCache;
// \c #sourceLocation directive handling.
struct VirtualFile {