aboutsummaryrefslogtreecommitdiff
path: root/lib/Basic/IdentifierTable.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-10-18 21:17:35 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-10-18 21:17:35 +0000
commit01eb9b9683535d8a65c704ad2c545903409e2d36 (patch)
tree62f21f2b440d6a4a196cf2fcb6d06eeb7b9a6fb7 /lib/Basic/IdentifierTable.cpp
parentfa4f55067bb62a61eb48f77b0216ab1bb1168d27 (diff)
PR5218: Replace IdentifierInfo::getName with StringRef version, now that clients
are updated. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84447 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/IdentifierTable.cpp')
-rw-r--r--lib/Basic/IdentifierTable.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Basic/IdentifierTable.cpp b/lib/Basic/IdentifierTable.cpp
index a3c5c4a408..16aa0c5484 100644
--- a/lib/Basic/IdentifierTable.cpp
+++ b/lib/Basic/IdentifierTable.cpp
@@ -306,7 +306,7 @@ std::string MultiKeywordSelector::getName() const {
llvm::raw_svector_ostream OS(Str);
for (keyword_iterator I = keyword_begin(), E = keyword_end(); I != E; ++I) {
if (*I)
- OS << (*I)->getNameStr();
+ OS << (*I)->getName();
OS << ':';
}
@@ -322,12 +322,12 @@ std::string Selector::getAsString() const {
// If the number of arguments is 0 then II is guaranteed to not be null.
if (getNumArgs() == 0)
- return II->getNameStr();
+ return II->getName();
if (!II)
return ":";
- return II->getNameStr().str() + ":";
+ return II->getName().str() + ":";
}
// We have a multiple keyword selector (no embedded flags).