aboutsummaryrefslogtreecommitdiff
path: root/Lex/IdentifierTable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Lex/IdentifierTable.cpp')
-rw-r--r--Lex/IdentifierTable.cpp15
1 files changed, 3 insertions, 12 deletions
diff --git a/Lex/IdentifierTable.cpp b/Lex/IdentifierTable.cpp
index aba3f9d1f2..fd64dec0ae 100644
--- a/Lex/IdentifierTable.cpp
+++ b/Lex/IdentifierTable.cpp
@@ -324,10 +324,9 @@ std::string Selector::getName() const {
}
-Selector SelectorTable::getKeywordSelector(unsigned nKeys,
- IdentifierInfo **IIV) {
- if (nKeys == 1)
- return Selector(IIV[0], 1);
+Selector SelectorTable::getSelector(unsigned nKeys, IdentifierInfo **IIV) {
+ if (nKeys < 2)
+ return Selector(IIV[0], nKeys);
llvm::FoldingSet<MultiKeywordSelector> *SelTab;
@@ -351,14 +350,6 @@ Selector SelectorTable::getKeywordSelector(unsigned nKeys,
return Selector(SI);
}
-Selector SelectorTable::getUnarySelector(IdentifierInfo *ID) {
- return Selector(ID, 1);
-}
-
-Selector SelectorTable::getNullarySelector(IdentifierInfo *ID) {
- return Selector(ID, 0);
-}
-
SelectorTable::SelectorTable() {
Impl = new llvm::FoldingSet<MultiKeywordSelector>;
}