summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/ResolveLocation.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-06-30 02:36:12 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-06-30 02:36:12 +0000
commitcfbfe78e9e4a5b95196361a0038e839889ea2257 (patch)
treeb7432ee1195c0fe35ee86eb00bd63b25480a457f /clang/lib/Frontend/ResolveLocation.cpp
parente3d025995c4408b8ab2b717c5f08f1f9d967b6f4 (diff)
downloadbcm5719-llvm-cfbfe78e9e4a5b95196361a0038e839889ea2257.tar.gz
bcm5719-llvm-cfbfe78e9e4a5b95196361a0038e839889ea2257.zip
De-ASTContext-ify DeclContext.
Remove ASTContext parameter from DeclContext's methods. This change cascaded down to other Decl's methods and changes to call sites started "escalating". Timings using pre-tokenized "cocoa.h" showed only a ~1% increase in time run between and after this commit. llvm-svn: 74506
Diffstat (limited to 'clang/lib/Frontend/ResolveLocation.cpp')
-rw-r--r--clang/lib/Frontend/ResolveLocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/ResolveLocation.cpp b/clang/lib/Frontend/ResolveLocation.cpp
index 3908e894663..d7a9b4852a9 100644
--- a/clang/lib/Frontend/ResolveLocation.cpp
+++ b/clang/lib/Frontend/ResolveLocation.cpp
@@ -163,7 +163,7 @@ void StmtLocResolver::VisitStmt(Stmt *Node) {
void DeclLocResolver::VisitDeclContext(DeclContext *DC) {
DeclLocResolver DLR(Ctx, Loc);
for (DeclContext::decl_iterator
- I = DC->decls_begin(Ctx), E = DC->decls_end(Ctx); I != E; ++I) {
+ I = DC->decls_begin(), E = DC->decls_end(); I != E; ++I) {
DLR.Visit(*I);
if (DLR.Finished()) {
if (DLR.FoundIt())
OpenPOWER on IntegriCloud