diff options
author | Steve Naroff <snaroff@apple.com> | 2009-03-10 17:24:38 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-03-10 17:24:38 +0000 |
commit | fdc92b7877535e6264fe43cfbdc8f01e9b224f81 (patch) | |
tree | 409b81e53d3a0e650602903acdc4ea9f10c9fe40 /include/clang/Basic/IdentifierTable.h | |
parent | 4843e584b54460973b8445d38907bab0401ebb0c (diff) |
Simplify SelectorTable::constructSetterName() usage...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66551 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/IdentifierTable.h')
-rw-r--r-- | include/clang/Basic/IdentifierTable.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/clang/Basic/IdentifierTable.h b/include/clang/Basic/IdentifierTable.h index df0200f1e7..70e1cbfdd3 100644 --- a/include/clang/Basic/IdentifierTable.h +++ b/include/clang/Basic/IdentifierTable.h @@ -435,13 +435,16 @@ public: /// constructSetterName - Return the setter name for the given /// identifier, i.e. "set" + Name where the initial character of Name /// has been capitalized. - static IdentifierInfo *constructSetterName(IdentifierTable &Idents, - const IdentifierInfo *Name) { + static Selector constructSetterName(IdentifierTable &Idents, + SelectorTable &SelTable, + const IdentifierInfo *Name) { llvm::SmallString<100> SelectorName; SelectorName = "set"; SelectorName.append(Name->getName(), Name->getName()+Name->getLength()); SelectorName[3] = toupper(SelectorName[3]); - return &Idents.get(&SelectorName[0], &SelectorName[SelectorName.size()]); + IdentifierInfo *SetterName = + &Idents.get(&SelectorName[0], &SelectorName[SelectorName.size()]); + return SelTable.getUnarySelector(SetterName); } // Emit - Emit a SelectorTable to bitcode. |