/freebsd/contrib/llvm-project/clang/lib/Basic/ |
H A D | ObjCRuntime.cpp | 23 std::string ObjCRuntime::getAsString() const { in getAsString() 32 raw_ostream &clang::operator<<(raw_ostream &out, const ObjCRuntime &value) { in operator <<() 34 case ObjCRuntime::MacOSX: out << "macosx"; break; in operator <<() 35 case ObjCRuntime::FragileMacOSX: out << "macosx-fragile"; break; in operator <<() 36 case ObjCRuntime::iOS: out << "ios"; break; in operator <<() 37 case ObjCRuntime::WatchOS: out << "watchos"; break; in operator <<() 38 case ObjCRuntime::GNUstep: out << "gnustep"; break; in operator <<() 39 case ObjCRuntime::GCC: out << "gcc"; break; in operator <<() 40 case ObjCRuntime::ObjFW: out << "objfw"; break; in operator <<() 48 bool ObjCRuntime::tryParse(StringRef input) { in tryParse() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGException.cpp | 82 getLangOpts().ObjCRuntime.hasTerminate()) in getTerminateFn() 153 switch (L.ObjCRuntime.getKind()) { in getObjCPersonality() 154 case ObjCRuntime::FragileMacOSX: in getObjCPersonality() 156 case ObjCRuntime::MacOSX: in getObjCPersonality() 157 case ObjCRuntime::iOS: in getObjCPersonality() 158 case ObjCRuntime::WatchOS: in getObjCPersonality() 160 case ObjCRuntime::GNUstep: in getObjCPersonality() 163 else if (L.ObjCRuntime.getVersion() >= VersionTuple(1, 7)) in getObjCPersonality() 166 case ObjCRuntime::GCC: in getObjCPersonality() 167 case ObjCRuntime::ObjFW: in getObjCPersonality() [all …]
|
H A D | CGObjCGNU.cpp | 177 bool isRuntime(ObjCRuntime::Kind kind, unsigned major, unsigned minor=0) { in isRuntime() 178 const ObjCRuntime &R = CGM.getLangOpts().ObjCRuntime; in isRuntime() 229 assert(!isRuntime(ObjCRuntime::GNUstep, 2)); in MakePropertyEncodingString() 230 if (isRuntime(ObjCRuntime::GNUstep, 1, 6)) { in MakePropertyEncodingString() 280 if (isRuntime(ObjCRuntime::GNUstep, 2)) { in PushPropertyListHeader() 818 const ObjCRuntime &R = CGM.getLangOpts().ObjCRuntime; in CGObjCGNUstep() 877 assert (CGM.getLangOpts().ObjCRuntime.getVersion() >= in GetCppAtomicObjectGetFunction() 885 assert (CGM.getLangOpts().ObjCRuntime.getVersion() >= in GetCppAtomicObjectSetFunction() 898 assert (CGM.getLangOpts().ObjCRuntime.getVersion() >= in GetOptimizedPropertySetFunction() 2258 isRuntime(ObjCRuntime::GNUstep, 2); in CGObjCGNU() [all …]
|
H A D | CodeGenModule.h | 328 std::unique_ptr<CGObjCRuntime> ObjCRuntime; variable 650 if (!ObjCRuntime) createObjCRuntime(); in getObjCRuntime() 651 return *ObjCRuntime; in getObjCRuntime() 655 bool hasObjCRuntime() { return !!ObjCRuntime; } in hasObjCRuntime()
|
H A D | CodeGenModule.cpp | 460 switch (LangOpts.ObjCRuntime.getKind()) { in createObjCRuntime() 461 case ObjCRuntime::GNUstep: in createObjCRuntime() 462 case ObjCRuntime::GCC: in createObjCRuntime() 463 case ObjCRuntime::ObjFW: in createObjCRuntime() 464 ObjCRuntime.reset(CreateGNUObjCRuntime(*this)); in createObjCRuntime() 467 case ObjCRuntime::FragileMacOSX: in createObjCRuntime() 468 case ObjCRuntime::MacOSX: in createObjCRuntime() 469 case ObjCRuntime::iOS: in createObjCRuntime() 470 case ObjCRuntime::WatchOS: in createObjCRuntime() 471 ObjCRuntime.reset(CreateMacObjCRuntime(*this)); in createObjCRuntime() [all …]
|
H A D | CGObjC.cpp | 134 if (NumElements == 0 && CGM.getLangOpts().ObjCRuntime.hasEmptyCollections()) { in EmitObjCCollectionLiteral() 385 auto &Runtime = CGM.getLangOpts().ObjCRuntime; in tryGenerateSpecializedMessageSend() 526 auto &Runtime = CGF.getLangOpts().ObjCRuntime; in tryEmitSpecializedAllocInit() 1428 return CGM.getLangOpts().ObjCRuntime.hasOptimizedSetter(); in UseOptimizedSetter() 2146 if (!CGM.getLangOpts().ObjCRuntime.hasNativeARC() && in setARCRuntimeFunctionLinkage() 3046 CGM.getLangOpts().ObjCRuntime.hasARCUnsafeClaimAutoreleasedReturnValue()) { in EmitARCReclaimReturnedObject() 3653 if (CGM.getLangOpts().ObjCRuntime.hasNativeARC()) { in EmitObjCAutoreleasePoolStmt() 3706 !getLangOpts().ObjCRuntime.hasAtomicCopyHelper()) in GenerateObjCAtomicSetterCopyHelperFunction() 3804 !getLangOpts().ObjCRuntime.hasAtomicCopyHelper()) in GenerateObjCAtomicGetterCopyHelperFunction()
|
H A D | CGObjCMac.cpp | 2039 GV->setSection(CGM.getLangOpts().ObjCRuntime.isNonFragile() in GenerateConstantNSString() 7869 switch (CGM.getLangOpts().ObjCRuntime.getKind()) { in CreateMacObjCRuntime() 7870 case ObjCRuntime::FragileMacOSX: in CreateMacObjCRuntime() 7873 case ObjCRuntime::MacOSX: in CreateMacObjCRuntime() 7874 case ObjCRuntime::iOS: in CreateMacObjCRuntime() 7875 case ObjCRuntime::WatchOS: in CreateMacObjCRuntime() 7878 case ObjCRuntime::GNUstep: in CreateMacObjCRuntime() 7879 case ObjCRuntime::GCC: in CreateMacObjCRuntime() 7880 case ObjCRuntime::ObjFW: in CreateMacObjCRuntime()
|
/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/ |
H A D | Clang.h | 22 class ObjCRuntime; variable 87 ObjCRuntime AddObjCRuntimeArgs(const llvm::opt::ArgList &args,
|
H A D | Darwin.cpp | 954 ObjCRuntime Darwin::getDefaultObjCRuntime(bool isNonFragile) const { in getDefaultObjCRuntime() 956 return ObjCRuntime(ObjCRuntime::WatchOS, TargetVersion); in getDefaultObjCRuntime() 958 return ObjCRuntime(ObjCRuntime::iOS, TargetVersion); in getDefaultObjCRuntime() 964 return ObjCRuntime(ObjCRuntime::iOS, T.getiOSVersion()); in getDefaultObjCRuntime() 967 return ObjCRuntime(ObjCRuntime::MacOSX, TargetVersion); in getDefaultObjCRuntime() 968 return ObjCRuntime(ObjCRuntime::FragileMacOSX, TargetVersion); in getDefaultObjCRuntime() 1191 ObjCRuntime runtime = getDefaultObjCRuntime(/*nonfragile*/ true); in AddLinkARCArgs()
|
H A D | Clang.cpp | 307 shouldUseExceptionTablesForObjCExceptions(const ObjCRuntime &runtime, in shouldUseExceptionTablesForObjCExceptions() 329 const ObjCRuntime &objcRuntime, in addExceptionArgs() 4191 ObjCRuntime &Runtime, bool InferCovariantReturns, in RenderObjCOptions() 4212 Runtime.getKind() == ObjCRuntime::FragileMacOSX && Runtime.isNeXTFamily()) in RenderObjCOptions() 7251 ObjCRuntime Runtime = AddObjCRuntimeArgs(Args, Inputs, CmdArgs, rewriteKind); in ConstructJob() 8017 ObjCRuntime Clang::AddObjCRuntimeArgs(const ArgList &args, in AddObjCRuntimeArgs() 8030 ObjCRuntime runtime; in AddObjCRuntimeArgs() 8036 if ((runtime.getKind() == ObjCRuntime::GNUstep) && in AddObjCRuntimeArgs() 8106 ObjCRuntime runtime; in AddObjCRuntimeArgs() 8113 runtime = ObjCRuntime(ObjCRuntime::FragileMacOSX, VersionTuple()); in AddObjCRuntimeArgs() [all …]
|
H A D | Darwin.h | 559 ObjCRuntime getDefaultObjCRuntime(bool isNonFragile) const override;
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | InitPreprocessor.cpp | 952 if (LangOpts.ObjCRuntime.isNonFragile()) { in InitializePredefinedMacros() 962 if (LangOpts.ObjCRuntime.isNeXTFamily()) in InitializePredefinedMacros() 965 if (LangOpts.ObjCRuntime.getKind() == ObjCRuntime::GNUstep) { in InitializePredefinedMacros() 966 auto version = LangOpts.ObjCRuntime.getVersion(); in InitializePredefinedMacros() 979 if (LangOpts.ObjCRuntime.getKind() == ObjCRuntime::ObjFW) { in InitializePredefinedMacros() 980 VersionTuple tuple = LangOpts.ObjCRuntime.getVersion(); in InitializePredefinedMacros()
|
H A D | CompilerInvocation.cpp | 3594 GenerateArg(Consumer, OPT_fobjc_runtime_EQ, Opts.ObjCRuntime.getAsString()); in GenerateLangArgs() 3957 if (Opts.ObjCRuntime.tryParse(value)) in ParseLangArgs() 3967 if (!Opts.ObjCRuntime.allowsARC()) in ParseLangArgs() 3978 Opts.ObjCWeakRuntime = Opts.ObjCRuntime.allowsWeak(); in ParseLangArgs() 3998 (Opts.ObjCRuntime.getKind() == ObjCRuntime::FragileMacOSX); in ParseLangArgs() 4938 HBuilder.add(getLangOpts().ObjCRuntime); in getModuleHash()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
H A D | ClangExpressionParser.cpp | 594 lang_opts.ObjCRuntime.set(ObjCRuntime::MacOSX, VersionTuple(10, 7)); in ClangExpressionParser() 598 lang_opts.ObjCRuntime.set(ObjCRuntime::FragileMacOSX, in ClangExpressionParser() 602 lang_opts.ObjCRuntime.set(ObjCRuntime::GNUstep, VersionTuple(2, 0)); in ClangExpressionParser()
|
/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | LangOptions.h | 496 clang::ObjCRuntime ObjCRuntime; variable 625 return ObjCRuntime.isSubscriptPointerArithmetic() && in isSubscriptPointerArithmetic()
|
H A D | Features.def | 133 FEATURE(objc_nonfragile_abi, LangOpts.ObjCRuntime.isNonFragile()) 136 FEATURE(objc_weak_class, LangOpts.ObjCRuntime.hasWeakClassImport()) 141 FEATURE(objc_subscripting, LangOpts.ObjCRuntime.isNonFragile())
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | Mangle.cpp | 332 if (getASTContext().getLangOpts().ObjCRuntime.isGNUFamily()) { in mangleObjCMethodName() 447 if (Context.getLangOpts().ObjCRuntime.isGNUFamily()) in getClassSymbolPrefix()
|
H A D | DeclBase.cpp | 836 getASTContext().getLangOpts().ObjCRuntime.hasWeakClassImport()) { in canBeWeakImported()
|
/freebsd/contrib/llvm-project/clang/include/clang/Driver/ |
H A D | ToolChain.h | 53 class ObjCRuntime; variable 656 virtual ObjCRuntime getDefaultObjCRuntime(bool isNonFragile) const;
|
/freebsd/contrib/llvm-project/clang/lib/InstallAPI/ |
H A D | Visitor.cpp | 148 if (ASTCtx.getLangOpts().ObjCRuntime.isFragile()) in recordObjCInstanceVariables() 181 (!D->getASTContext().getLangOpts().ObjCRuntime.isFragile() && in VisitObjCInterfaceDecl()
|
/freebsd/contrib/llvm-project/clang/lib/Driver/ |
H A D | ToolChain.cpp | 989 ObjCRuntime ToolChain::getDefaultObjCRuntime(bool isNonFragile) const { in getDefaultObjCRuntime() 990 return ObjCRuntime(isNonFragile ? ObjCRuntime::GNUstep : ObjCRuntime::GCC, in getDefaultObjCRuntime()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaObjCProperty.cpp | 695 } else if (getLangOpts().ObjCRuntime.allowsDirectDispatch()) { in CreatePropertyDecl() 1325 if (getLangOpts().ObjCRuntime.isFragile()) in ActOnPropertyImplDecl() 1330 } else if (getLangOpts().ObjCRuntime.isNonFragile() && in ActOnPropertyImplDecl() 1553 getLangOpts().ObjCRuntime.isNonFragile() && in ActOnPropertyImplDecl() 1964 getLangOpts().ObjCRuntime.isFragile()) in DefaultSynthesizeProperties() 2004 S.LangOpts.ObjCRuntime.isNonFragile()) in DiagnoseUnimplementedAccessor()
|
H A D | SemaDeclObjC.cpp | 2156 if (!getLangOpts().ObjCRuntime.isFragile()) in CheckImplementationIvars() 2168 if (getLangOpts().ObjCRuntime.isNonFragile()) { in CheckImplementationIvars() 2746 if (S.getLangOpts().ObjCRuntime.isNeXTFamily()) { in CheckProtocolMethodDefs() 3010 getLangOpts().ObjCRuntime.isNonFragile() && in ImplMethodsVsClassMethods() 4177 if (getLangOpts().ObjCRuntime.isNonFragile()) { in ActOnAtEnd() 5123 if (getLangOpts().ObjCRuntime.isNonFragile()) { in ActOnDefs() 5623 if (getLangOpts().ObjCRuntime.isFragile()) { in ActOnIvar() 5632 if (getLangOpts().ObjCRuntime.isFragile() || !CDecl->IsClassExtension()) { in ActOnIvar() 5680 if (getLangOpts().ObjCRuntime.isNonFragile() && !NewID->isInvalidDecl() && in ActOnIvar()
|
H A D | SemaObjC.cpp | 1619 if (getLangOpts().ObjCRuntime.allowsDirectDispatch()) { in handleDirectAttr() 1627 if (getLangOpts().ObjCRuntime.allowsDirectDispatch()) { in handleDirectMembersAttr()
|
/freebsd/contrib/llvm-project/clang/lib/Serialization/ |
H A D | ASTReader.cpp | 338 if (ExistingLangOpts.ObjCRuntime != LangOpts.ObjCRuntime) { in checkLanguageOptions() 6046 ObjCRuntime::Kind runtimeKind = (ObjCRuntime::Kind) Record[Idx++]; in ParseLanguageOptions() 6048 LangOpts.ObjCRuntime = ObjCRuntime(runtimeKind, runtimeVersion); in ParseLanguageOptions()
|