summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index/GlobalSelector.cpp
diff options
context:
space:
mode:
authorKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2010-03-12 09:33:31 +0000
committerKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2010-03-12 09:33:31 +0000
commit47b55969c3dc720fa8eafa24e6160066e0b133b1 (patch)
tree259f03517fa3982a15cf760e348034f81f42a8a2 /clang/lib/Index/GlobalSelector.cpp
parent7b88a49f3e422f83443e22fac59e3e7739c6b3d6 (diff)
downloadbcm5719-llvm-47b55969c3dc720fa8eafa24e6160066e0b133b1.tar.gz
bcm5719-llvm-47b55969c3dc720fa8eafa24e6160066e0b133b1.zip
Cleanup using StringRef
llvm-svn: 98339
Diffstat (limited to 'clang/lib/Index/GlobalSelector.cpp')
-rw-r--r--clang/lib/Index/GlobalSelector.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/clang/lib/Index/GlobalSelector.cpp b/clang/lib/Index/GlobalSelector.cpp
index 2b2ca6d3b1c..34679185b16 100644
--- a/clang/lib/Index/GlobalSelector.cpp
+++ b/clang/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);
}
OpenPOWER on IntegriCloud