remove uses of IdentifierInfo::getName()

llvm-svn: 59607
This commit is contained in:
Chris Lattner 2008-11-19 07:51:13 +00:00
parent 406c096993
commit 760d19ade1
2 changed files with 4 additions and 6 deletions

View File

@ -76,8 +76,7 @@ void PragmaPackHandler::HandlePragma(Preprocessor &PP, Token &PackTok) {
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 @@ void PragmaPackHandler::HandlePragma(Preprocessor &PP, Token &PackTok) {
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;
}
}

View File

@ -600,7 +600,7 @@ void Parser::ParseKNRParamDeclarations(Declarator &D) {
// 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 @@ void Parser::ParseKNRParamDeclarations(Declarator &D) {
if (FTI.ArgInfo[i].Param) {
Diag(ParmDeclarator.getIdentifierLoc(),
diag::err_param_redefinition)
<< ParmDeclarator.getIdentifier()->getName();
<< ParmDeclarator.getIdentifier();
} else {
FTI.ArgInfo[i].Param = Param;
}