diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-12-25 04:47:44 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-12-25 04:47:44 +0000 |
commit | eaf5ec43ec52f650a00254d1c20d51fb7671aead (patch) | |
tree | 4d86fbb0e475df5bf9bfa69f3fe06925538db368 /include/clang/AST/Decl.h | |
parent | dfb316613a40d0efc033c7bd0a49da59c915fc63 (diff) |
Revert r171048, "Cache visibility of decls."
It broke stage2.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171050 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/Decl.h')
-rw-r--r-- | include/clang/AST/Decl.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h index bb75895df5..e00779844c 100644 --- a/include/clang/AST/Decl.h +++ b/include/clang/AST/Decl.h @@ -228,12 +228,6 @@ public: "Enum truncated!"); } - bool operator==(const LinkageInfo &Other) { - return linkage_ == Other.linkage_ && - visibility_ == Other.visibility_ && - explicit_ == Other.explicit_; - } - static LinkageInfo external() { return LinkageInfo(); } @@ -329,7 +323,7 @@ public: /// \brief Clear the linkage cache in response to a change /// to the declaration. - void ClearLVCache(); + void ClearLinkageCache(); /// \brief Looks through UsingDecls and ObjCCompatibleAliasDecls for /// the underlying named decl. @@ -3325,7 +3319,7 @@ void Redeclarable<decl_type>::setPreviousDeclaration(decl_type *PrevDecl) { // First one will point to this one as latest. First->RedeclLink = LatestDeclLink(static_cast<decl_type*>(this)); if (NamedDecl *ND = dyn_cast<NamedDecl>(static_cast<decl_type*>(this))) - ND->ClearLVCache(); + ND->ClearLinkageCache(); } // Inline function definitions. |