diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-12-25 00:39:58 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-12-25 00:39:58 +0000 |
commit | dfb316613a40d0efc033c7bd0a49da59c915fc63 (patch) | |
tree | 2667cd947b697a035beb84db61713f5681595eb9 /lib/AST/Type.cpp | |
parent | a73d3db5bf38ec2c3908187c24fec7219c4e46b5 (diff) |
Cache visibility of decls.
This unifies the linkage and visibility caching. I first implemented this when
working on pr13844, but the previous fixes removed the performance advantage of
this one.
This is still a step in the right direction for making linkage and visibility
cheap to use.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171048 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Type.cpp')
-rw-r--r-- | lib/AST/Type.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index 26eee2d74a..673528ada0 100644 --- a/lib/AST/Type.cpp +++ b/lib/AST/Type.cpp @@ -2186,7 +2186,7 @@ std::pair<Linkage,Visibility> Type::getLinkageAndVisibility() const { return std::make_pair(TypeBits.getLinkage(), TypeBits.getVisibility()); } -void Type::ClearLinkageCache() { +void Type::ClearLVCache() { TypeBits.CacheValidAndVisibility = 0; if (QualType(this, 0) != CanonicalType) CanonicalType->TypeBits.CacheValidAndVisibility = 0; |