Use .swiftmodule instead of .sm for serialized modules.

We can bikeshed on this later, but for now we can use a very explicit
extension that has no chance of stepping on any existing extension.

Swift SVN r5239
This commit is contained in:
Jordan Rose
2013-05-20 22:50:40 +00:00
parent ea0d5031ab
commit 6a0609d169
4 changed files with 6 additions and 2 deletions

View File

@@ -52,7 +52,8 @@ SerializedModuleLoader::~SerializedModuleLoader() = default;
static llvm::error_code findModule(ASTContext &ctx, AccessPathElem moduleID,
llvm::OwningPtr<llvm::MemoryBuffer> &buffer){
llvm::SmallString<64> moduleFilename(moduleID.first.str());
moduleFilename += ".sm";
moduleFilename += '.';
moduleFilename += SERIALIZED_MODULE_EXTENSION;
llvm::SmallString<128> inputFilename;