r253181 - [Basic] Replace vector<bool> with BitVector in SourceManager. NFC.

Vedant Kumar via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 15 20:39:22 PST 2015


Author: vedantk
Date: Sun Nov 15 22:39:22 2015
New Revision: 253181

URL: http://llvm.org/viewvc/llvm-project?rev=253181&view=rev
Log:
[Basic] Replace vector<bool> with BitVector in SourceManager. NFC.

Modified:
    cfe/trunk/include/clang/Basic/SourceManager.h

Modified: cfe/trunk/include/clang/Basic/SourceManager.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/SourceManager.h?rev=253181&r1=253180&r2=253181&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/SourceManager.h (original)
+++ cfe/trunk/include/clang/Basic/SourceManager.h Sun Nov 15 22:39:22 2015
@@ -39,6 +39,7 @@
 #include "clang/Basic/LLVM.h"
 #include "clang/Basic/SourceLocation.h"
 #include "llvm/ADT/ArrayRef.h"
+#include "llvm/ADT/BitVector.h"
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/ADT/DenseSet.h"
 #include "llvm/ADT/IntrusiveRefCntPtr.h"
@@ -620,7 +621,7 @@ class SourceManager : public RefCountedB
   /// have already been loaded from the external source.
   ///
   /// Same indexing as LoadedSLocEntryTable.
-  std::vector<bool> SLocEntryLoaded;
+  llvm::BitVector SLocEntryLoaded;
 
   /// \brief An external source for source location entries.
   ExternalSLocEntrySource *ExternalSLocEntries;




More information about the cfe-commits mailing list