[cfe-commits] r69449 - /cfe/trunk/lib/Frontend/PCHWriter.cpp

Douglas Gregor dgregor at apple.com
Sat Apr 18 08:49:20 PDT 2009


Author: dgregor
Date: Sat Apr 18 10:49:20 2009
New Revision: 69449

URL: http://llvm.org/viewvc/llvm-project?rev=69449&view=rev
Log:
Don't emit name-lookup tables for functions or methods in the PCH files

Modified:
    cfe/trunk/lib/Frontend/PCHWriter.cpp

Modified: cfe/trunk/lib/Frontend/PCHWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/PCHWriter.cpp?rev=69449&r1=69448&r2=69449&view=diff

==============================================================================
--- cfe/trunk/lib/Frontend/PCHWriter.cpp (original)
+++ cfe/trunk/lib/Frontend/PCHWriter.cpp Sat Apr 18 10:49:20 2009
@@ -1439,6 +1439,11 @@
   if (DC->getPrimaryContext() != DC)
     return 0;
 
+  // Since there is no name lookup into functions or methods, don't
+  // bother to build a visible-declarations table.
+  if (DC->isFunctionOrMethod())
+    return 0;
+
   // Force the DeclContext to build a its name-lookup table.
   DC->lookup(Context, DeclarationName());
 





More information about the cfe-commits mailing list