Skip to content
  • Douglas Gregor's avatar
    Eliminated LookupCriteria, whose creation was causing a bottleneck for · ed8f2887
    Douglas Gregor authored
    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
    ed8f2887
Loading