[FileSystem] Remove Exists() from FileSpec

This patch removes the Exists method from FileSpec and updates its uses
with calls to the FileSystem.

Differential revision: https://reviews.llvm.org/D53845

llvm-svn: 345854
This commit is contained in:
Jonas Devlieghere committed 2018-11-01 17:09:25 +00:00
1 parent 2c22c800a0
commit dbd7fabaa0
52 files changed
+178 -171

No files matched your search

@@ -53,7 +53,8 @@ OperatingSystem *OperatingSystemPython::CreateInstance(Process *process,
// Python OperatingSystem plug-ins must be requested by name, so force must
// be true
FileSpec python_os_plugin_spec(process->GetPythonOSPluginPath());
if (python_os_plugin_spec && python_os_plugin_spec.Exists()) {
if (python_os_plugin_spec &&
FileSystem::Instance().Exists(python_os_plugin_spec)) {
std::unique_ptr<OperatingSystemPython> os_ap(
new OperatingSystemPython(process, python_os_plugin_spec));
if (os_ap.get() && os_ap->IsValid())