summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/TargetList.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2018-11-01 17:09:25 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2018-11-01 17:09:25 +0000
commitdbd7fabaa0ae01d3505d52e2be3d794f0dd74a93 (patch)
tree17f0843784cbfba88449a5ea5cca1a9cb35e3998 /lldb/source/Target/TargetList.cpp
parent2c22c800a0d049f6300dbf59b400aa1329c21971 (diff)
downloadbcm5719-llvm-dbd7fabaa0ae01d3505d52e2be3d794f0dd74a93.tar.gz
bcm5719-llvm-dbd7fabaa0ae01d3505d52e2be3d794f0dd74a93.zip
[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
Diffstat (limited to 'lldb/source/Target/TargetList.cpp')
-rw-r--r--lldb/source/Target/TargetList.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Target/TargetList.cpp b/lldb/source/Target/TargetList.cpp
index 34b1c7f398c..380ce0012d1 100644
--- a/lldb/source/Target/TargetList.cpp
+++ b/lldb/source/Target/TargetList.cpp
@@ -347,7 +347,7 @@ Status TargetList::CreateTargetInternal(Debugger &debugger,
arch = specified_arch;
FileSpec file(user_exe_path, false);
- if (!file.Exists() && user_exe_path.startswith("~")) {
+ if (!FileSystem::Instance().Exists(file) && user_exe_path.startswith("~")) {
// we want to expand the tilde but we don't want to resolve any symbolic
// links so we can't use the FileSpec constructor's resolve flag
llvm::SmallString<64> unglobbed_path;
@@ -372,7 +372,7 @@ Status TargetList::CreateTargetInternal(Debugger &debugger,
if (! llvm::sys::fs::current_path(cwd)) {
FileSpec cwd_file(cwd.c_str(), false);
cwd_file.AppendPathComponent(file);
- if (cwd_file.Exists())
+ if (FileSystem::Instance().Exists(cwd_file))
file = cwd_file;
}
}
OpenPOWER on IntegriCloud