aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/PrintPreprocessedOutput.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/Frontend/PrintPreprocessedOutput.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/Frontend/PrintPreprocessedOutput.cpp')
-rw-r--r--lib/Frontend/PrintPreprocessedOutput.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Frontend/PrintPreprocessedOutput.cpp b/lib/Frontend/PrintPreprocessedOutput.cpp
index 3883228224..f3cb20619e 100644
--- a/lib/Frontend/PrintPreprocessedOutput.cpp
+++ b/lib/Frontend/PrintPreprocessedOutput.cpp
@@ -399,7 +399,7 @@ static void PrintPreprocessedTokens(Preprocessor &PP, Token &Tok,
}
if (IdentifierInfo *II = Tok.getIdentifierInfo()) {
- OS << II->getNameStr();
+ OS << II->getName();
} else if (Tok.isLiteral() && !Tok.needsCleaning() &&
Tok.getLiteralData()) {
OS.write(Tok.getLiteralData(), Tok.getLength());
@@ -434,7 +434,7 @@ namespace {
struct SortMacrosByID {
typedef std::pair<IdentifierInfo*, MacroInfo*> id_macro_pair;
bool operator()(const id_macro_pair &LHS, const id_macro_pair &RHS) const {
- return LHS.first->getNameStr() < RHS.first->getNameStr();
+ return LHS.first->getName() < RHS.first->getName();
}
};
}