aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/ModuleBuilder.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-08-20 04:39:52 +0000
committerDouglas Gregor <dgregor@apple.com>2011-08-20 04:39:52 +0000
commit211f6e894895f552e0a98421b2f6e931ca4a8c11 (patch)
tree57750447b31ca3a502e6dffd0e511b575571b4fb /lib/CodeGen/ModuleBuilder.cpp
parent23f395ee1bf4e4aa76b310d896a951799eaca94a (diff)
Introduce a module visitation function that starts at the top-level
modules (those that no other module depends on) and performs a search over all of the modules, visiting a new module only when all of the modules that depend on it have already been visited. The visitor can abort the search for all modules that a module depends on, which allows us to minimize the number of lookups necessary when performing a search. Switch identifier lookup from a linear walk over the set of modules to this module visitation operation. The behavior is the same for simple PCH and chained PCH, but provides the proper search order for modules. Verified with printf debugging, since we don't have enough in place to actually test this. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138187 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions