]> granicus.if.org Git - clang/commitdiff
[PCH] The range map for SLoc offsets is a reversed one, not negated.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 19 Sep 2011 20:54:44 +0000 (20:54 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 19 Sep 2011 20:54:44 +0000 (20:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140066 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Serialization/ASTReader.h

index 48f8053471779ed2b71ff6a497545e9ee8ddafe1..507fd66ec722f4c342d69c49d2d20d324028584a 100644 (file)
@@ -248,10 +248,10 @@ private:
   /// \brief A map of negated SLocEntryIDs to the modules containing them.
   ContinuousRangeMap<unsigned, Module*, 64> GlobalSLocEntryMap;
 
-  typedef ContinuousRangeMap<int, Module*, 64> GlobalSLocOffsetMapType;
+  typedef ContinuousRangeMap<unsigned, Module*, 64> GlobalSLocOffsetMapType;
   
-  /// \brief A map of negated SourceLocation offsets to the modules containing
-  /// them.
+  /// \brief A map of reversed (SourceManager::MaxLoadedOffset - SLocOffset)
+  /// SourceLocation offsets to the modules containing them.
   GlobalSLocOffsetMapType GlobalSLocOffsetMap;
   
   /// \brief Types that have already been loaded from the chain.