@@ -58,12 +58,12 @@ std::error_code SerializedModuleLoaderBase::openModuleFiles(
58
58
// If there are no buffers to load into, simply check for the existence of
59
59
// the module file.
60
60
if (!(ModuleBuffer || ModuleDocBuffer)) {
61
- llvm::ErrorOr<clang ::vfs::Status> statResult = FS.status (ModulePath);
61
+ llvm::ErrorOr<llvm ::vfs::Status> statResult = FS.status (ModulePath);
62
62
if (!statResult)
63
63
return statResult.getError ();
64
64
if (!statResult->exists ())
65
65
return std::make_error_code (std::errc::no_such_file_or_directory);
66
- // FIXME: clang ::vfs::FileSystem doesn't give us information on whether or
66
+ // FIXME: llvm ::vfs::FileSystem doesn't give us information on whether or
67
67
// not we can /read/ the file without actually trying to do so.
68
68
return std::error_code ();
69
69
}
@@ -111,17 +111,17 @@ std::error_code SerializedModuleLoader::findModuleFilesInDirectory(
111
111
bool SerializedModuleLoader::maybeDiagnoseArchitectureMismatch (
112
112
SourceLoc sourceLocation, StringRef moduleName, StringRef archName,
113
113
StringRef directoryPath) {
114
- clang ::vfs::FileSystem &fs = *Ctx.SourceMgr .getFileSystem ();
114
+ llvm ::vfs::FileSystem &fs = *Ctx.SourceMgr .getFileSystem ();
115
115
116
116
std::error_code errorCode;
117
117
std::string foundArchs;
118
- for (clang ::vfs::directory_iterator directoryIterator =
118
+ for (llvm ::vfs::directory_iterator directoryIterator =
119
119
fs.dir_begin (directoryPath, errorCode), endIterator;
120
120
directoryIterator != endIterator;
121
121
directoryIterator.increment (errorCode)) {
122
122
if (errorCode)
123
123
return false ;
124
- StringRef filePath = directoryIterator->getName ();
124
+ StringRef filePath = directoryIterator->path ();
125
125
StringRef extension = llvm::sys::path::extension (filePath);
126
126
if (file_types::lookupTypeForExtension (extension) ==
127
127
file_types::TY_SwiftModuleFile) {
@@ -198,7 +198,7 @@ SerializedModuleLoaderBase::findModule(AccessPathElem moduleID,
198
198
199
199
currPath = path;
200
200
llvm::sys::path::append (currPath, moduleFilename.str ());
201
- llvm::ErrorOr<clang ::vfs::Status> statResult = fs.status (currPath);
201
+ llvm::ErrorOr<llvm ::vfs::Status> statResult = fs.status (currPath);
202
202
203
203
if (statResult && statResult->isDirectory ()) {
204
204
// A .swiftmodule directory contains architecture-specific files.
0 commit comments