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); PP.Lex(Tok);
if (Tok.isNot(tok::numeric_constant)) { if (Tok.isNot(tok::numeric_constant)) {
PP.Diag(Tok.getLocation(), diag::warn_pragma_pack_malformed) PP.Diag(Tok.getLocation(), diag::warn_pragma_pack_malformed)<<II;
<< II->getName();
return; return;
} }
@ -88,8 +87,7 @@ void PragmaPackHandler::HandlePragma(Preprocessor &PP, Token &PackTok) {
PP.Lex(Tok); PP.Lex(Tok);
} }
} else { } else {
PP.Diag(Tok.getLocation(), diag::warn_pragma_pack_malformed) PP.Diag(Tok.getLocation(), diag::warn_pragma_pack_malformed) << II;
<< II->getName();
return; return;
} }
} }

View File

@ -600,7 +600,7 @@ void Parser::ParseKNRParamDeclarations(Declarator &D) {
// the identifier list. // the identifier list.
if (i == FTI.NumArgs) { if (i == FTI.NumArgs) {
Diag(ParmDeclarator.getIdentifierLoc(), diag::err_no_matching_param) Diag(ParmDeclarator.getIdentifierLoc(), diag::err_no_matching_param)
<< ParmDeclarator.getIdentifier()->getName(); << ParmDeclarator.getIdentifier();
break; break;
} }
@ -609,7 +609,7 @@ void Parser::ParseKNRParamDeclarations(Declarator &D) {
if (FTI.ArgInfo[i].Param) { if (FTI.ArgInfo[i].Param) {
Diag(ParmDeclarator.getIdentifierLoc(), Diag(ParmDeclarator.getIdentifierLoc(),
diag::err_param_redefinition) diag::err_param_redefinition)
<< ParmDeclarator.getIdentifier()->getName(); << ParmDeclarator.getIdentifier();
} else { } else {
FTI.ArgInfo[i].Param = Param; FTI.ArgInfo[i].Param = Param;
} }