@@ -295,18 +295,18 @@ bool LangOptions::isCustomConditionalCompilationFlagSet(StringRef Name) const {
295
295
}
296
296
297
297
bool LangOptions::FeatureState::isEnabled () const {
298
- return this ->state != FeatureState::Off;
298
+ return this ->state != FeatureState::Kind:: Off;
299
299
}
300
300
301
301
bool LangOptions::FeatureState::isEnabledForAdoption () const {
302
302
ASSERT (isFeatureAdoptable (this ->feature ) &&
303
303
" You forgot to make the feature adoptable!" );
304
304
305
- return this ->state == FeatureState::EnabledForAdoption;
305
+ return this ->state == FeatureState::Kind:: EnabledForAdoption;
306
306
}
307
307
308
308
LangOptions::FeatureStateStorage::FeatureStateStorage ()
309
- : states(numFeatures(), FeatureState::Off) {}
309
+ : states(numFeatures(), FeatureState::Kind:: Off) {}
310
310
311
311
void LangOptions::FeatureStateStorage::setState (Feature feature,
312
312
FeatureState::Kind state) {
@@ -329,7 +329,7 @@ LangOptions::FeatureState LangOptions::getFeatureState(Feature feature) const {
329
329
330
330
if (auto version = getFeatureLanguageVersion (feature)) {
331
331
if (this ->isSwiftVersionAtLeast (*version)) {
332
- return FeatureState (feature, FeatureState::Enabled);
332
+ return FeatureState (feature, FeatureState::Kind:: Enabled);
333
333
}
334
334
}
335
335
@@ -361,14 +361,15 @@ bool LangOptions::hasFeature(llvm::StringRef featureName) const {
361
361
void LangOptions::enableFeature (Feature feature, bool forAdoption) {
362
362
if (forAdoption) {
363
363
ASSERT (isFeatureAdoptable (feature));
364
- this ->featureStates .setState (feature, FeatureState::EnabledForAdoption);
364
+ this ->featureStates .setState (feature,
365
+ FeatureState::Kind::EnabledForAdoption);
365
366
} else {
366
- this ->featureStates .setState (feature, FeatureState::Enabled);
367
+ this ->featureStates .setState (feature, FeatureState::Kind:: Enabled);
367
368
}
368
369
}
369
370
370
371
void LangOptions::disableFeature (Feature feature) {
371
- this ->featureStates .setState (feature, FeatureState::Off);
372
+ this ->featureStates .setState (feature, FeatureState::Kind:: Off);
372
373
}
373
374
374
375
void LangOptions::setHasAtomicBitWidth (llvm::Triple triple) {
0 commit comments