Add two small utility functions to PCHReader that the writer will use. WIP.

llvm-svn: 108267
This commit is contained in:
Sebastian Redl 2010-07-13 20:12:07 +00:00
parent a6c7efec2b
commit 117b01b2da
1 changed files with 10 additions and 0 deletions

View File

@ -602,6 +602,16 @@ public:
/// \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