diff options
| author | John McCall <rjmccall@apple.com> | 2010-06-04 20:50:08 +0000 | 
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2010-06-04 20:50:08 +0000 | 
| commit | 339bb66246db3942192de61abf40123330cf5c18 (patch) | |
| tree | 9006697b82e98c0789bf6631e4979cf56e30f718 /clang/lib/Frontend | |
| parent | 50d229e6b326f315ebd59e958ee4667f7ead964c (diff) | |
| download | bcm5719-llvm-339bb66246db3942192de61abf40123330cf5c18.tar.gz bcm5719-llvm-339bb66246db3942192de61abf40123330cf5c18.zip | |
Remember type source information for Objective C property declarations.
llvm-svn: 105484
Diffstat (limited to 'clang/lib/Frontend')
| -rw-r--r-- | clang/lib/Frontend/PCHReaderDecl.cpp | 4 | ||||
| -rw-r--r-- | clang/lib/Frontend/PCHWriterDecl.cpp | 2 | 
2 files changed, 3 insertions, 3 deletions
| diff --git a/clang/lib/Frontend/PCHReaderDecl.cpp b/clang/lib/Frontend/PCHReaderDecl.cpp index 8b7b66c2b85..5056f93377c 100644 --- a/clang/lib/Frontend/PCHReaderDecl.cpp +++ b/clang/lib/Frontend/PCHReaderDecl.cpp @@ -376,7 +376,7 @@ void PCHDeclReader::VisitObjCCompatibleAliasDecl(ObjCCompatibleAliasDecl *CAD) {  void PCHDeclReader::VisitObjCPropertyDecl(ObjCPropertyDecl *D) {    VisitNamedDecl(D);    D->setAtLoc(SourceLocation::getFromRawEncoding(Record[Idx++])); -  D->setType(Reader.GetType(Record[Idx++])); +  D->setType(Reader.GetTypeSourceInfo(Record, Idx));    // FIXME: stable encoding    D->setPropertyAttributes(                        (ObjCPropertyDecl::PropertyAttributeKind)Record[Idx++]); @@ -1045,7 +1045,7 @@ Decl *PCHReader::ReadDeclRecord(uint64_t Offset, unsigned Index) {      break;    case pch::DECL_OBJC_PROPERTY:      D = ObjCPropertyDecl::Create(*Context, 0, SourceLocation(), 0, SourceLocation(), -                                 QualType()); +                                 0);      break;    case pch::DECL_OBJC_PROPERTY_IMPL:      D = ObjCPropertyImplDecl::Create(*Context, 0, SourceLocation(), diff --git a/clang/lib/Frontend/PCHWriterDecl.cpp b/clang/lib/Frontend/PCHWriterDecl.cpp index 8eeef7c741e..499a16adb1e 100644 --- a/clang/lib/Frontend/PCHWriterDecl.cpp +++ b/clang/lib/Frontend/PCHWriterDecl.cpp @@ -359,7 +359,7 @@ void PCHDeclWriter::VisitObjCCompatibleAliasDecl(ObjCCompatibleAliasDecl *D) {  void PCHDeclWriter::VisitObjCPropertyDecl(ObjCPropertyDecl *D) {    VisitNamedDecl(D);    Writer.AddSourceLocation(D->getAtLoc(), Record); -  Writer.AddTypeRef(D->getType(), Record); +  Writer.AddTypeSourceInfo(D->getTypeSourceInfo(), Record);    // FIXME: stable encoding    Record.push_back((unsigned)D->getPropertyAttributes());    // FIXME: stable encoding | 

