]> granicus.if.org Git - clang/commit
Hack Sema::LookupDeclInScope() to avoid calling Sema::LookupName() when parsing C...
authorSteve Naroff <snaroff@apple.com>
Thu, 29 Jan 2009 18:09:31 +0000 (18:09 +0000)
committerSteve Naroff <snaroff@apple.com>
Thu, 29 Jan 2009 18:09:31 +0000 (18:09 +0000)
commita51890346e0d81519d0656f44bce15c40bf63d3f
tree077564851cbcf3f5c802e637e3bbb70f3b91bf28
parent95effa1e2df6db814add998b0495a12bc58b621e
Hack Sema::LookupDeclInScope() to avoid calling Sema::LookupName() when parsing C/ObjC.

This results in a 1.7% improvement for "Cocoa.h". If we can figure out how to return a "Decl *", rather than a Sema::LookupResult(), we will likely bump the speedup from 1.7%->2.5%. I verified this, however couldn't get it to work without breaking a fair number of C++ test cases. Will discuss with Doug offline.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63320 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/Sema.h
lib/Sema/SemaDecl.cpp