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:
Xi Ge
2017-09-12 12:49:02 -07:00
parent bfe6a64708
commit 2a07534bc1
4 changed files with 11 additions and 23 deletions

View File

@@ -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)