[cfe-commits] r108267 - /cfe/trunk/include/clang/Frontend/PCHReader.h

Sebastian Redl sebastian.redl at getdesigned.at
Tue Jul 13 13:12:07 PDT 2010


Author: cornedbee
Date: Tue Jul 13 15:12:07 2010
New Revision: 108267

URL: http://llvm.org/viewvc/llvm-project?rev=108267&view=rev
Log:
Add two small utility functions to PCHReader that the writer will use. WIP.

Modified:
    cfe/trunk/include/clang/Frontend/PCHReader.h

Modified: cfe/trunk/include/clang/Frontend/PCHReader.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Frontend/PCHReader.h?rev=108267&r1=108266&r2=108267&view=diff
==============================================================================
--- cfe/trunk/include/clang/Frontend/PCHReader.h (original)
+++ cfe/trunk/include/clang/Frontend/PCHReader.h Tue Jul 13 15:12:07 2010
@@ -602,6 +602,16 @@
   /// \brief Read preprocessed entities into the 
   virtual void ReadPreprocessedEntities();
 
+  /// \brief Returns the number of types found in this file.
+  unsigned getTotalNumTypes() const {
+    return static_cast<unsigned>(TypesLoaded.size());
+  }
+
+  /// \brief Returns the number of declarations found in this file.
+  unsigned getTotalNumDecls() const {
+    return static_cast<unsigned>(DeclsLoaded.size());
+  }
+
   /// \brief Reads a TemplateArgumentLocInfo appropriate for the
   /// given TemplateArgument kind.
   TemplateArgumentLocInfo





More information about the cfe-commits mailing list