forked from OSchip/llvm-project
Add two small utility functions to PCHReader that the writer will use. WIP.
llvm-svn: 108267
This commit is contained in:
parent
a6c7efec2b
commit
117b01b2da
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue