aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-04-03 22:49:41 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-04-03 22:49:41 +0000
commit4382867f04549f9bfcd33a08342f4f74ab13841c (patch)
treeb5384eee03b133f0b1354437651bf255db2ef5e3 /include
parent702077f14100f2d7acdb12ad49b53e64efc37d72 (diff)
Pare back r164351 somewhat. The problem that change was addressing was that we
don't serialize a lookup map for the translation unit outside C++ mode, so we can't tell when lookup within the TU needs to look within modules. Only apply the fix outside C++ mode, and only to the translation unit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178706 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/clang/AST/DeclBase.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/clang/AST/DeclBase.h b/include/clang/AST/DeclBase.h
index 852bb9ab04..4af49efb7d 100644
--- a/include/clang/AST/DeclBase.h
+++ b/include/clang/AST/DeclBase.h
@@ -1479,7 +1479,11 @@ public:
inline ddiag_iterator ddiag_end() const;
// Low-level accessors
-
+
+ bool mustBuildLookupTable() {
+ return LookupPtr.getInt();
+ }
+
/// \brief Mark the lookup table as needing to be built. This should be
/// used only if setHasExternalLexicalStorage() has been called on any
/// decl context for which this is the primary context.