Read/write more information of ASTContext for PCH. Overriden methods and instantiated-from information.

llvm-svn: 107597
This commit is contained in:
Argyrios Kyrtzidis
2010-07-04 21:44:35 +00:00
parent e51e554a82
commit 6685e8a747
6 changed files with 45 additions and 0 deletions

View File

@@ -716,6 +716,10 @@ CXXMethodDecl::method_iterator CXXMethodDecl::end_overridden_methods() const {
return getASTContext().overridden_methods_end(this);
}
unsigned CXXMethodDecl::size_overridden_methods() const {
return getASTContext().overridden_methods_size(this);
}
QualType CXXMethodDecl::getThisType(ASTContext &C) const {
// C++ 9.3.2p1: The type of this in a member function of a class X is X*.
// If the member function is declared const, the type of this is const X*,