From: Jordy Rose Date: Tue, 30 Aug 2011 01:51:13 +0000 (+0000) Subject: Remove obsolete ObjCInferRelatedReturnType from LangOptions...the correct option... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b84ab9f2adff42dcae3509c854a446b95917a10;p=clang Remove obsolete ObjCInferRelatedReturnType from LangOptions...the correct option is ObjCInferRelatedResultType. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138793 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/LangOptions.h b/include/clang/Basic/LangOptions.h index 5cdeda3877..4267eecf23 100644 --- a/include/clang/Basic/LangOptions.h +++ b/include/clang/Basic/LangOptions.h @@ -134,8 +134,6 @@ public: unsigned NoBitFieldTypeAlign : 1; unsigned ObjCAutoRefCount : 1; // Objective C automated reference counting unsigned ObjCRuntimeHasWeak : 1; // The ARC runtime supports __weak - unsigned ObjCInferRelatedReturnType : 1; // Infer Objective-C related return - // types unsigned FakeAddressSpaceMap : 1; // Use a fake address space map, for // testing languages such as OpenCL. @@ -180,7 +178,6 @@ public: HexFloats = 0; ObjCAutoRefCount = 0; ObjCRuntimeHasWeak = 0; - ObjCInferRelatedReturnType = 0; GC = ObjC1 = ObjC2 = ObjCNonFragileABI = ObjCNonFragileABI2 = 0; AppleKext = 0; ObjCDefaultSynthProperties = 0; diff --git a/lib/Serialization/ASTReader.cpp b/lib/Serialization/ASTReader.cpp index 2817d86d36..fe714300ac 100644 --- a/lib/Serialization/ASTReader.cpp +++ b/lib/Serialization/ASTReader.cpp @@ -154,7 +154,6 @@ PCHValidator::ReadLanguageOptions(const LangOptions &LangOpts) { PARSE_LANGOPT_IMPORTANT(ElideConstructors, diag::warn_pch_elide_constructors); PARSE_LANGOPT_BENIGN(SpellChecking); PARSE_LANGOPT_IMPORTANT(ObjCAutoRefCount, diag::warn_pch_auto_ref_count); - PARSE_LANGOPT_BENIGN(ObjCInferRelatedReturnType); #undef PARSE_LANGOPT_IMPORTANT #undef PARSE_LANGOPT_BENIGN @@ -3085,7 +3084,6 @@ bool ASTReader::ParseLanguageOptions( PARSE_LANGOPT(SpellChecking); PARSE_LANGOPT(MRTD); PARSE_LANGOPT(ObjCAutoRefCount); - PARSE_LANGOPT(ObjCInferRelatedReturnType); #undef PARSE_LANGOPT return Listener->ReadLanguageOptions(LangOpts); diff --git a/lib/Serialization/ASTWriter.cpp b/lib/Serialization/ASTWriter.cpp index 79703216f5..0d2a0154de 100644 --- a/lib/Serialization/ASTWriter.cpp +++ b/lib/Serialization/ASTWriter.cpp @@ -1134,7 +1134,6 @@ void ASTWriter::WriteLanguageOptions(const LangOptions &LangOpts) { Record.push_back(LangOpts.SpellChecking); Record.push_back(LangOpts.MRTD); Record.push_back(LangOpts.ObjCAutoRefCount); - Record.push_back(LangOpts.ObjCInferRelatedReturnType); Stream.EmitRecord(LANGUAGE_OPTIONS, Record); }