mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[LangOptions] Introduce a new enum class for platform conditions (#7843)
This commit is contained in:
@@ -96,7 +96,7 @@ findModule(ASTContext &ctx, AccessPathElem moduleID,
|
||||
// FIXME: Which name should we be using here? Do we care about CPU subtypes?
|
||||
// FIXME: At the very least, don't hardcode "arch".
|
||||
llvm::SmallString<16> archFile{
|
||||
ctx.LangOpts.getPlatformConditionValue("arch")};
|
||||
ctx.LangOpts.getPlatformConditionValue(PlatformConditionKind::Arch)};
|
||||
llvm::SmallString<16> archDocFile{archFile};
|
||||
if (!archFile.empty()) {
|
||||
archFile += '.';
|
||||
|
||||
Reference in New Issue
Block a user