objc diagnostic: pass IdentifierInfo* to the diagnostic system

to produce quotes instead of adding qoute to the test.

llvm-svn: 159450
This commit is contained in:
Fariborz Jahanian 2012-06-29 18:43:30 +00:00
parent 3c5c9e7774
commit 1db30fc071
2 changed files with 4 additions and 4 deletions

View File

@ -635,8 +635,8 @@ def warn_auto_synthesizing_protocol_property :Warning<
" declared in a protocol">,
InGroup<DiagGroup<"objc-protocol-property-synthesis">>;
def warn_autosynthesis_property_ivar_match :Warning<
"autosynthesized property '%0' will use %select{|synthesized}1 instance variable "
"'%2', not existing instance variable '%3'">,
"autosynthesized property %0 will use %select{|synthesized}1 instance variable "
"%2, not existing instance variable %3">,
InGroup<DiagGroup<"objc-autosynthesis-property-ivar-name-match">>;
def warn_missing_explicit_synthesis : Warning <
"auto property synthesis is synthesizing property not explicitly synthesized">,

View File

@ -829,8 +829,8 @@ Decl *Sema::ActOnPropertyImplDecl(Scope *S,
if (originalIvar) {
Diag(PropertyDiagLoc,
diag::warn_autosynthesis_property_ivar_match)
<< property->getName() << (Ivar == 0) << PropertyIvar->getName()
<< originalIvar->getName();
<< propertyId << (Ivar == 0) << PropertyIvar
<< originalIvar->getIdentifier();
Diag(property->getLocation(), diag::note_property_declare);
Diag(originalIvar->getLocation(), diag::note_ivar_decl);
}