aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/BoostConAction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-05-07 05:51:13 +0000
committerChris Lattner <sabre@nondot.org>2010-05-07 05:51:13 +0000
commit48296ba924cb95e0d898fa7a1da33f23be8c731c (patch)
treebfa637b4586f691f6df6e393ccf26569e0d0850c /lib/Frontend/BoostConAction.cpp
parent7db7acbbb84b82d0522266a50ebabc3a52a9e5d1 (diff)
reimplement the guts of SourceManager::isBeforeInTranslationUnit
to be algorithmically faster and avoid an std::map. This routine basically boils down to finding the nearest common ancestor in a tree, and we (implicitly) have information about nesting depth, use it! This wraps up rdar://7948633 - SourceManager::isBeforeInTranslationUnit has poor performance git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103239 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/BoostConAction.cpp')
0 files changed, 0 insertions, 0 deletions