aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-01-30 01:04:22 +0000
committerDouglas Gregor <dgregor@apple.com>2009-01-30 01:04:22 +0000
commited8f2887082bbc5c696e7a71217482f9089ce0c2 (patch)
treedc2cd940a0fd2a4289b2176c414a8dd7003d6d43 /llvm/lib/Support/CommandLine.cpp
parent199740651ce754663b3d488e0a25eada7153ebcc (diff)
downloadllvm-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