[cfe-commits] r140066 - /cfe/trunk/include/clang/Serialization/ASTReader.h

Argyrios Kyrtzidis akyrtzi at gmail.com
Mon Sep 19 13:54:44 PDT 2011


Author: akirtzidis
Date: Mon Sep 19 15:54:44 2011
New Revision: 140066

URL: http://llvm.org/viewvc/llvm-project?rev=140066&view=rev
Log:
[PCH] The range map for SLoc offsets is a reversed one, not negated.

Modified:
    cfe/trunk/include/clang/Serialization/ASTReader.h

Modified: cfe/trunk/include/clang/Serialization/ASTReader.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Serialization/ASTReader.h?rev=140066&r1=140065&r2=140066&view=diff
==============================================================================
--- cfe/trunk/include/clang/Serialization/ASTReader.h (original)
+++ cfe/trunk/include/clang/Serialization/ASTReader.h Mon Sep 19 15:54:44 2011
@@ -248,10 +248,10 @@
   /// \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.





More information about the cfe-commits mailing list