diff options
author | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2010-03-12 09:33:31 +0000 |
---|---|---|
committer | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2010-03-12 09:33:31 +0000 |
commit | 2781deb126663ca1bd412044a1e66577585987b3 (patch) | |
tree | c03780e898ef3764e93bf865697591f9f06ca5fc /lib/Index/GlobalSelector.cpp | |
parent | 700030ebddb987936d4fee14d9412821d96e4840 (diff) |
Cleanup using StringRef
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98339 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Index/GlobalSelector.cpp')
-rw-r--r-- | lib/Index/GlobalSelector.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/Index/GlobalSelector.cpp b/lib/Index/GlobalSelector.cpp index 2b2ca6d3b1..34679185b1 100644 --- a/lib/Index/GlobalSelector.cpp +++ b/lib/Index/GlobalSelector.cpp @@ -29,9 +29,7 @@ Selector GlobalSelector::getSelector(ASTContext &AST) const { for (unsigned i = 0, e = GlobSel.isUnarySelector() ? 1 : GlobSel.getNumArgs(); i != e; ++i) { IdentifierInfo *GlobII = GlobSel.getIdentifierInfoForSlot(i); - IdentifierInfo *II = - &AST.Idents.get(GlobII->getNameStart(), - GlobII->getNameStart() + GlobII->getLength()); + IdentifierInfo *II = &AST.Idents.get(GlobII->getName()); Ids.push_back(II); } @@ -58,9 +56,7 @@ GlobalSelector GlobalSelector::get(Selector Sel, Program &Prog) { for (unsigned i = 0, e = Sel.isUnarySelector() ? 1 : Sel.getNumArgs(); i != e; ++i) { IdentifierInfo *II = Sel.getIdentifierInfoForSlot(i); - IdentifierInfo *GlobII = - &ProgImpl.getIdents().get(II->getNameStart(), - II->getNameStart() + II->getLength()); + IdentifierInfo *GlobII = &ProgImpl.getIdents().get(II->getName()); Ids.push_back(GlobII); } |