mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Basic/LangOptions] Remove std::unordered_map/unordered_set from LangOptions and use SmallVector instead.
The config options are so few that a map is not worth it currently. Swift SVN r15476
This commit is contained in:
@@ -91,8 +91,8 @@ 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.TargetConfigOptions["arch"]);
|
||||
llvm::SmallString<16> archDocFile(ctx.LangOpts.TargetConfigOptions["arch"]);
|
||||
llvm::SmallString<16> archFile(ctx.LangOpts.getTargetConfigOption("arch"));
|
||||
llvm::SmallString<16> archDocFile(ctx.LangOpts.getTargetConfigOption("arch"));
|
||||
if (!archFile.empty()) {
|
||||
archFile += '.';
|
||||
archFile += SERIALIZED_MODULE_EXTENSION;
|
||||
|
||||
Reference in New Issue
Block a user