diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-01-24 15:24:38 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-01-24 15:24:38 +0000 |
commit | 247afcc6a904afff18e67154bda85930523dfb88 (patch) | |
tree | a35f156c6f8b68f2293779e96f63ee621355f0ce /clang/lib/Serialization/ASTReaderInternals.h | |
parent | 38f3981a99073a0b6a491a0d3d3d2b87ba819c31 (diff) | |
download | bcm5719-llvm-247afcc6a904afff18e67154bda85930523dfb88.tar.gz bcm5719-llvm-247afcc6a904afff18e67154bda85930523dfb88.zip |
Only mark an IdentifierInfo as having changed since deserialization
when it actually has changed (and not, e.g., when we've simply attached a
deserialized macro definition). Good for ~1.5% reduction in module
file size, mostly in the identifier table.
llvm-svn: 148808
Diffstat (limited to 'clang/lib/Serialization/ASTReaderInternals.h')
-rw-r--r-- | clang/lib/Serialization/ASTReaderInternals.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTReaderInternals.h b/clang/lib/Serialization/ASTReaderInternals.h index 635f95fe594..3a1dfcf4b74 100644 --- a/clang/lib/Serialization/ASTReaderInternals.h +++ b/clang/lib/Serialization/ASTReaderInternals.h @@ -129,6 +129,9 @@ public: IdentifierInfo *ReadData(const internal_key_type& k, const unsigned char* d, unsigned DataLen); + + ASTReader &getReader() const { return Reader; } + }; /// \brief The on-disk hash table used to contain information about |