r179653 - In ASTContext::getOverriddenMethods, call overridden_methods_begin/overridden_methods_end directly.
Argyrios Kyrtzidis
akyrtzi at gmail.com
Tue Apr 16 17:09:03 PDT 2013
Author: akirtzidis
Date: Tue Apr 16 19:09:03 2013
New Revision: 179653
URL: http://llvm.org/viewvc/llvm-project?rev=179653&view=rev
Log:
In ASTContext::getOverriddenMethods, call overridden_methods_begin/overridden_methods_end directly.
This avoids unnecessary Decl::getASTContext() invocations.
Modified:
cfe/trunk/lib/AST/ASTContext.cpp
Modified: cfe/trunk/lib/AST/ASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTContext.cpp?rev=179653&r1=179652&r2=179653&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ASTContext.cpp (original)
+++ cfe/trunk/lib/AST/ASTContext.cpp Tue Apr 16 19:09:03 2013
@@ -1127,8 +1127,8 @@ void ASTContext::getOverriddenMethods(
assert(D);
if (const CXXMethodDecl *CXXMethod = dyn_cast<CXXMethodDecl>(D)) {
- Overridden.append(CXXMethod->begin_overridden_methods(),
- CXXMethod->end_overridden_methods());
+ Overridden.append(overridden_methods_begin(CXXMethod),
+ overridden_methods_end(CXXMethod));
return;
}
More information about the cfe-commits
mailing list