PR5218: Replace IdentifierInfo::getName with StringRef version, now that clients
are updated.
llvm-svn: 84447
diff --git a/clang/lib/Basic/IdentifierTable.cpp b/clang/lib/Basic/IdentifierTable.cpp
index a3c5c4a..16aa0c5 100644
--- a/clang/lib/Basic/IdentifierTable.cpp
+++ b/clang/lib/Basic/IdentifierTable.cpp
@@ -306,7 +306,7 @@
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 @@
// 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).