diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-01-30 01:04:22 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-01-30 01:04:22 +0000 |
commit | ed8f2887082bbc5c696e7a71217482f9089ce0c2 (patch) | |
tree | dc2cd940a0fd2a4289b2176c414a8dd7003d6d43 /llvm/lib/Support/CommandLine.cpp | |
parent | 199740651ce754663b3d488e0a25eada7153ebcc (diff) | |
download | llvm-ed8f2887082bbc5c696e7a71217482f9089ce0c2.zip llvm-ed8f2887082bbc5c696e7a71217482f9089ce0c2.tar.gz llvm-ed8f2887082bbc5c696e7a71217482f9089ce0c2.tar.bz2 |
Eliminated LookupCriteria, whose creation was causing a bottleneck for
LookupName et al. Instead, use an enum and a bool to describe its
contents.
Optimized the C/Objective-C path through LookupName, eliminating any
unnecessarily C++isms. Simplify IdentifierResolver::iterator, removing
some code and arguments that are no longer used.
Eliminated LookupDeclInScope/LookupDeclInContext, moving all callers
over to LookupName, LookupQualifiedName, or LookupParsedName, as
appropriate.
All together, I'm seeing a 0.2% speedup on Cocoa.h with PTH and
-disable-free. Plus, we're down to three name-lookup routines.
llvm-svn: 63354
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions