summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2012-08-23 21:16:40 +0000
committerSean Callanan <scallanan@apple.com>2012-08-23 21:16:40 +0000
commit845db1087c8190eb958091cd106bee03a126fc57 (patch)
tree7a451b28ed214c702073ec40c3c3ac3f46c0ac2c
parent608036ae5b471bfb8c38143f35c075c9d1edc0ad (diff)
downloadbcm5719-llvm-845db1087c8190eb958091cd106bee03a126fc57.tar.gz
bcm5719-llvm-845db1087c8190eb958091cd106bee03a126fc57.zip
Added a method to DeclContext that marks the
lookup table as needing to be built. This is required for LLDB, which provides the contents of many DeclContexts through a custom ExternalASTSource. llvm-svn: 162471
-rw-r--r--clang/include/clang/AST/DeclBase.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/include/clang/AST/DeclBase.h b/clang/include/clang/AST/DeclBase.h
index 0f596095f74..ec4bfdd72b9 100644
--- a/clang/include/clang/AST/DeclBase.h
+++ b/clang/include/clang/AST/DeclBase.h
@@ -1479,6 +1479,13 @@ public:
inline ddiag_iterator ddiag_end() const;
// Low-level accessors
+
+ /// \brief Mark the lookup table as needing to be built. This should be
+ /// used only if setHasExternalLexicalStorage() has been called.
+ void setMustBuildLookupTable() {
+ assert(ExternalLexicalStorage && "Requires external lexical storage");
+ LookupPtr.setInt(true);
+ }
/// \brief Retrieve the internal representation of the lookup structure.
/// This may omit some names if we are lazily building the structure.
OpenPOWER on IntegriCloud