[LangOptions] Introduce a new enum class for platform conditions (#7843)

This commit is contained in:
Rintaro Ishizaki
2017-03-02 01:58:20 +09:00
committed by GitHub
parent c6dc44d5de
commit 1f3c66226c
4 changed files with 114 additions and 125 deletions

View File

@@ -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 += '.';