[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:
Argyrios Kyrtzidis
2014-03-26 00:26:17 +00:00
parent 97c89acb9a
commit f1d14c0911
7 changed files with 69 additions and 26 deletions

View File

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