From 7b51ae8e0e09816737d3bcd471666d5f6a5695c0 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 4 Apr 2013 04:40:17 +0000 Subject: Add hasExternalLinkageUncached back with the test that Richard provided, but keep the call at the current location. llvm-svn: 178741 --- clang/lib/AST/Decl.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang/lib/AST/Decl.cpp') diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp index 9505d299ab1..bf807aeb1d6 100644 --- a/clang/lib/AST/Decl.cpp +++ b/clang/lib/AST/Decl.cpp @@ -866,6 +866,10 @@ bool NamedDecl::isLinkageValid() const { Linkage(CachedLinkage); } +bool NamedDecl::hasExternalLinkageUncached() const { + return getLVForDecl(this, LVForExplicitValue).getLinkage() == ExternalLinkage; +} + Linkage NamedDecl::getLinkage() const { if (HasCachedLinkage) return Linkage(CachedLinkage); -- cgit v1.2.3