forked from OSchip/llvm-project
[FileSystem] Remove `SetFileSystem` method.
This is no longer relevant with the new way we initialize the FileSystem. llvm-svn: 346003
This commit is contained in:
parent
d7c2b798be
commit
12950118c9
|
@ -124,9 +124,6 @@ public:
|
|||
std::error_code GetRealPath(const llvm::Twine &path,
|
||||
llvm::SmallVectorImpl<char> &output) const;
|
||||
|
||||
protected:
|
||||
void SetFileSystem(llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> fs);
|
||||
|
||||
private:
|
||||
static llvm::Optional<FileSystem> &InstanceImpl();
|
||||
llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> m_fs;
|
||||
|
|
|
@ -47,10 +47,6 @@ Optional<FileSystem> &FileSystem::InstanceImpl() {
|
|||
return g_fs;
|
||||
}
|
||||
|
||||
void FileSystem::SetFileSystem(IntrusiveRefCntPtr<vfs::FileSystem> fs) {
|
||||
m_fs = fs;
|
||||
}
|
||||
|
||||
sys::TimePoint<>
|
||||
FileSystem::GetModificationTime(const FileSpec &file_spec) const {
|
||||
return GetModificationTime(file_spec.GetPath());
|
||||
|
|
Loading…
Reference in New Issue