diff options
| author | Ted Kremenek <kremenek@apple.com> | 2009-03-14 00:20:08 +0000 | 
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2009-03-14 00:20:08 +0000 | 
| commit | 9a46804ca8ca73d0af13b1391b91ff91780008c2 (patch) | |
| tree | 7b8337036b95fdca9641b3b7ad677642626fc48a /clang/lib/Sema/SemaDeclObjC.cpp | |
| parent | 29de588ac29cad5bfe96f4e66c225261cc87fed4 (diff) | |
| download | bcm5719-llvm-9a46804ca8ca73d0af13b1391b91ff91780008c2.tar.gz bcm5719-llvm-9a46804ca8ca73d0af13b1391b91ff91780008c2.zip | |
Make Selector::getIdentifierInfo() private. I took a first attempt at this last
week in:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090302/013580.html
That patch caused the output of the diagnostics to change. Since
'DeclarationName' can already reason about Selectors and the Diagnostics logic
reasons about DeclarationName, there is no additional code needed to get the
diagnostics working by making Selector::getIdentifierInfo() private.
llvm-svn: 66992
Diffstat (limited to 'clang/lib/Sema/SemaDeclObjC.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaDeclObjC.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp index 6ca64e388ec..fb74519b57d 100644 --- a/clang/lib/Sema/SemaDeclObjC.cpp +++ b/clang/lib/Sema/SemaDeclObjC.cpp @@ -1137,7 +1137,7 @@ void Sema::ProcessPropertyDecl(ObjCPropertyDecl *property,      Diag(property->getLocation(),            diag::err_accessor_property_type_mismatch)         << property->getDeclName() -      << GetterMethod->getSelector().getAsIdentifierInfo(); +      << GetterMethod->getSelector();      Diag(GetterMethod->getLocation(), diag::note_declared_at);    } @@ -1150,7 +1150,7 @@ void Sema::ProcessPropertyDecl(ObjCPropertyDecl *property,        Diag(property->getLocation(),              diag::err_accessor_property_type_mismatch)           << property->getDeclName() -        << SetterMethod->getSelector().getAsIdentifierInfo(); +        << SetterMethod->getSelector();        Diag(SetterMethod->getLocation(), diag::note_declared_at);      }    } | 

