[cfe-commits] r59607 - in /cfe/trunk/lib/Parse: ParsePragma.cpp Parser.cpp
Chris Lattner
sabre at nondot.org
Tue Nov 18 23:51:13 PST 2008
Author: lattner
Date: Wed Nov 19 01:51:13 2008
New Revision: 59607
URL: http://llvm.org/viewvc/llvm-project?rev=59607&view=rev
Log:
remove uses of IdentifierInfo::getName()
Modified:
cfe/trunk/lib/Parse/ParsePragma.cpp
cfe/trunk/lib/Parse/Parser.cpp
Modified: cfe/trunk/lib/Parse/ParsePragma.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParsePragma.cpp?rev=59607&r1=59606&r2=59607&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParsePragma.cpp (original)
+++ cfe/trunk/lib/Parse/ParsePragma.cpp Wed Nov 19 01:51:13 2008
@@ -76,8 +76,7 @@
PP.Lex(Tok);
if (Tok.isNot(tok::numeric_constant)) {
- PP.Diag(Tok.getLocation(), diag::warn_pragma_pack_malformed)
- << II->getName();
+ PP.Diag(Tok.getLocation(), diag::warn_pragma_pack_malformed)<<II;
return;
}
@@ -88,8 +87,7 @@
PP.Lex(Tok);
}
} else {
- PP.Diag(Tok.getLocation(), diag::warn_pragma_pack_malformed)
- << II->getName();
+ PP.Diag(Tok.getLocation(), diag::warn_pragma_pack_malformed) << II;
return;
}
}
Modified: cfe/trunk/lib/Parse/Parser.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/Parser.cpp?rev=59607&r1=59606&r2=59607&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/Parser.cpp (original)
+++ cfe/trunk/lib/Parse/Parser.cpp Wed Nov 19 01:51:13 2008
@@ -600,7 +600,7 @@
// the identifier list.
if (i == FTI.NumArgs) {
Diag(ParmDeclarator.getIdentifierLoc(), diag::err_no_matching_param)
- << ParmDeclarator.getIdentifier()->getName();
+ << ParmDeclarator.getIdentifier();
break;
}
@@ -609,7 +609,7 @@
if (FTI.ArgInfo[i].Param) {
Diag(ParmDeclarator.getIdentifierLoc(),
diag::err_param_redefinition)
- << ParmDeclarator.getIdentifier()->getName();
+ << ParmDeclarator.getIdentifier();
} else {
FTI.ArgInfo[i].Param = Param;
}
More information about the cfe-commits
mailing list