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 | 1bf0ee0d5f918d88f814439d50dee0de6f37d764 (patch) | |
tree | 6fa83a33a670df41084208b6f1fed08220e91165 /clang | |
parent | 66ad57b04e93ba65f3aaa8bba1fa1524fb3672b6 (diff) | |
download | bcm5719-llvm-1bf0ee0d5f918d88f814439d50dee0de6f37d764.tar.gz bcm5719-llvm-1bf0ee0d5f918d88f814439d50dee0de6f37d764.zip |
[PCH] The range map for SLoc offsets is a reversed one, not negated.
llvm-svn: 140066
Diffstat (limited to 'clang')
-rw-r--r-- | clang/include/clang/Serialization/ASTReader.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/include/clang/Serialization/ASTReader.h b/clang/include/clang/Serialization/ASTReader.h index 48f80534717..507fd66ec72 100644 --- a/clang/include/clang/Serialization/ASTReader.h +++ b/clang/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. |