]> granicus.if.org Git - clang/commit
Sema: Replace the SetVector/DenseMap/std::sort combination with a simple std::map
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 13 Mar 2015 16:10:42 +0000 (16:10 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 13 Mar 2015 16:10:42 +0000 (16:10 +0000)
commite6a1b7a685dcda5c07ed06d332ed466cfc1cd013
treee180b6fe01d519363c57bd212bf5c180e41c5459
parent65c0c8ae7372a5b064317f0ec2ea69fae03e5444
Sema: Replace the SetVector/DenseMap/std::sort combination with a simple std::map

This guarantees the order and doesn't increase malloc counts a lot as there are
typically very few elements int the map. Provide a little iterator adapter to
keep the same interface as we had with the flat sorted list.

No functional change intended.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@232173 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/SemaInternal.h
lib/Sema/SemaLookup.cpp