diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-29 23:39:03 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-29 23:39:03 +0000 |
commit | 94431b5b4ceca8831e1ed6d6f646b99052680a85 (patch) | |
tree | 25e2c68a9df801ac429dea75dbd6a3eb3bc89e5a /lib/Index/Indexer.cpp | |
parent | daf253d73d6a6248edc458587f4e88763e1e1583 (diff) |
Introduce a helper template for the Handler classes and use it instead
of the iterator of the Indexer class.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77528 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Index/Indexer.cpp')
-rw-r--r-- | lib/Index/Indexer.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/Index/Indexer.cpp b/lib/Index/Indexer.cpp index 0b534b3881..08e367a279 100644 --- a/lib/Index/Indexer.cpp +++ b/lib/Index/Indexer.cpp @@ -57,31 +57,3 @@ void Indexer::GetTranslationUnitsFor(Entity Ent, for (TUSetTy::iterator I = Set.begin(), E = Set.end(); I != E; ++I) Handler.Handle(*I); } - -static Indexer::TUSetTy EmptySet; - -Indexer::translation_unit_iterator -Indexer::translation_units_begin(Entity Ent) const { - MapTy::iterator I = Map.find(Ent); - if (I == Map.end()) - return EmptySet.begin(); - - return I->second.begin(); -} - -Indexer::translation_unit_iterator -Indexer::translation_units_end(Entity Ent) const { - MapTy::iterator I = Map.find(Ent); - if (I == Map.end()) - return EmptySet.end(); - - return I->second.end(); -} - -bool Indexer::translation_units_empty(Entity Ent) const { - MapTy::iterator I = Map.find(Ent); - if (I == Map.end()) - return true; - - return I->second.begin() == I->second.end(); -} |