diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-19 20:54:44 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-19 20:54:44 +0000 |
commit | a68c4aff8cd3aada697ad36dc6582d0e09b4b0d2 (patch) | |
tree | 13ececd122b181c5eb762eda614f066520d924c7 /include | |
parent | 92ddef1bf843e1e18c040d69f48a6bf0bc7c776a (diff) | |
download | clang-a68c4aff8cd3aada697ad36dc6582d0e09b4b0d2.tar.gz |
[PCH] The range map for SLoc offsets is a reversed one, not negated.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140066 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/Serialization/ASTReader.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/clang/Serialization/ASTReader.h b/include/clang/Serialization/ASTReader.h index 48f8053471..507fd66ec7 100644 --- a/include/clang/Serialization/ASTReader.h +++ b/include/clang/Serialization/ASTReader.h @@ -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. |