Home
last modified time | relevance | path

Searched refs:ObjCRuntime (Results 1 – 25 of 34) sorted by relevance

12

/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DObjCRuntime.cpp23 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 DCGException.cpp82 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 DCGObjCGNU.cpp177 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 DCodeGenModule.h328 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 DCodeGenModule.cpp460 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 DCGObjC.cpp134 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 DCGObjCMac.cpp2039 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 DClang.h22 class ObjCRuntime; variable
87 ObjCRuntime AddObjCRuntimeArgs(const llvm::opt::ArgList &args,
H A DDarwin.cpp954 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 DClang.cpp307 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 DDarwin.h559 ObjCRuntime getDefaultObjCRuntime(bool isNonFragile) const override;
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DInitPreprocessor.cpp952 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 DCompilerInvocation.cpp3594 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 DClangExpressionParser.cpp594 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 DLangOptions.h496 clang::ObjCRuntime ObjCRuntime; variable
625 return ObjCRuntime.isSubscriptPointerArithmetic() && in isSubscriptPointerArithmetic()
H A DFeatures.def133 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 DMangle.cpp332 if (getASTContext().getLangOpts().ObjCRuntime.isGNUFamily()) { in mangleObjCMethodName()
447 if (Context.getLangOpts().ObjCRuntime.isGNUFamily()) in getClassSymbolPrefix()
H A DDeclBase.cpp836 getASTContext().getLangOpts().ObjCRuntime.hasWeakClassImport()) { in canBeWeakImported()
/freebsd/contrib/llvm-project/clang/include/clang/Driver/
H A DToolChain.h53 class ObjCRuntime; variable
656 virtual ObjCRuntime getDefaultObjCRuntime(bool isNonFragile) const;
/freebsd/contrib/llvm-project/clang/lib/InstallAPI/
H A DVisitor.cpp148 if (ASTCtx.getLangOpts().ObjCRuntime.isFragile()) in recordObjCInstanceVariables()
181 (!D->getASTContext().getLangOpts().ObjCRuntime.isFragile() && in VisitObjCInterfaceDecl()
/freebsd/contrib/llvm-project/clang/lib/Driver/
H A DToolChain.cpp989 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 DSemaObjCProperty.cpp695 } 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 DSemaDeclObjC.cpp2156 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 DSemaObjC.cpp1619 if (getLangOpts().ObjCRuntime.allowsDirectDispatch()) { in handleDirectAttr()
1627 if (getLangOpts().ObjCRuntime.allowsDirectDispatch()) { in handleDirectMembersAttr()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReader.cpp338 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()

12