mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "Paser: IfConfigDecl should reflect the underlying source. rdar://34315827"
For test failure witnessed in bots: https://ci.swift.org/job/oss-swift-incremental-RA-osx/462/
This commit is contained in:
@@ -116,21 +116,6 @@ LangOptions::getPlatformConditionValue(PlatformConditionKind Kind) const {
|
||||
return StringRef();
|
||||
}
|
||||
|
||||
bool LangOptions::
|
||||
checkPlatformCondition(PlatformConditionKind Kind, StringRef Value) const {
|
||||
// Check a special case that "macOS" is an alias of "OSX".
|
||||
if (Kind == PlatformConditionKind::OS && Value == "macOS")
|
||||
return true;
|
||||
|
||||
for (auto &Opt : reversed(PlatformConditionValues)) {
|
||||
if (Opt.first == Kind)
|
||||
if (Opt.second == Value)
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool LangOptions::isCustomConditionalCompilationFlagSet(StringRef Name) const {
|
||||
return std::find(CustomConditionalCompilationFlags.begin(),
|
||||
CustomConditionalCompilationFlags.end(), Name)
|
||||
|
||||
Reference in New Issue
Block a user