[cfe-commits] r162471 - /cfe/trunk/include/clang/AST/DeclBase.h

Sean Callanan scallanan at apple.com
Thu Aug 23 14:16:40 PDT 2012


Author: spyffe
Date: Thu Aug 23 16:16:40 2012
New Revision: 162471

URL: http://llvm.org/viewvc/llvm-project?rev=162471&view=rev
Log:
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.

Modified:
    cfe/trunk/include/clang/AST/DeclBase.h

Modified: cfe/trunk/include/clang/AST/DeclBase.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclBase.h?rev=162471&r1=162470&r2=162471&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/DeclBase.h (original)
+++ cfe/trunk/include/clang/AST/DeclBase.h Thu Aug 23 16:16:40 2012
@@ -1479,6 +1479,13 @@
   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.





More information about the cfe-commits mailing list