Lines Matching refs:LangOpts
53 static bool hasFeature(StringRef Feature, const LangOptions &LangOpts, in hasFeature() argument
56 .Case("altivec", LangOpts.AltiVec) in hasFeature()
57 .Case("blocks", LangOpts.Blocks) in hasFeature()
58 .Case("cplusplus", LangOpts.CPlusPlus) in hasFeature()
59 .Case("cplusplus11", LangOpts.CPlusPlus0x) in hasFeature()
60 .Case("objc", LangOpts.ObjC1) in hasFeature()
61 .Case("objc_arc", LangOpts.ObjCAutoRefCount) in hasFeature()
62 .Case("opencl", LangOpts.OpenCL) in hasFeature()
68 Module::isAvailable(const LangOptions &LangOpts, const TargetInfo &Target, in isAvailable() argument
75 if (!hasFeature(Current->Requires[I], LangOpts, Target)) { in isAvailable()
132 void Module::addRequirement(StringRef Feature, const LangOptions &LangOpts, in addRequirement() argument
137 if (hasFeature(Feature, LangOpts, Target)) in addRequirement()