diff options
author | Chaoren Lin <chaorenl@google.com> | 2015-06-09 17:54:27 +0000 |
---|---|---|
committer | Chaoren Lin <chaorenl@google.com> | 2015-06-09 17:54:27 +0000 |
commit | 372e9067a7594afda771769d9cf5ee1d30a7c831 (patch) | |
tree | 75bf212e183c754d52e8a634bc00a1e5cc16e32e /lldb/source/Host/linux/HostInfoLinux.cpp | |
parent | efba7812cc8a2e4d544a8dbe4b7b32eb86e88716 (diff) | |
download | bcm5719-llvm-372e9067a7594afda771769d9cf5ee1d30a7c831.tar.gz bcm5719-llvm-372e9067a7594afda771769d9cf5ee1d30a7c831.zip |
Rename `FileSpec::IsRelativeToCurrentWorkingDirectory` to `IsRelative`.
Summary:
`IsRelativeToCurrentWorkingDirectory` was misleading, because relative paths
are sometimes appended to other directories, not just the cwd. Plus, the new
name is shorter. Also added `IsAbsolute` for completeness.
Reviewers: clayborg, ovyalov
Reviewed By: ovyalov
Subscribers: tberghammer, lldb-commits
Differential Revision: http://reviews.llvm.org/D10262
llvm-svn: 239419
Diffstat (limited to 'lldb/source/Host/linux/HostInfoLinux.cpp')
-rw-r--r-- | lldb/source/Host/linux/HostInfoLinux.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Host/linux/HostInfoLinux.cpp b/lldb/source/Host/linux/HostInfoLinux.cpp index 3666b5acf74..3a3023b1343 100644 --- a/lldb/source/Host/linux/HostInfoLinux.cpp +++ b/lldb/source/Host/linux/HostInfoLinux.cpp @@ -225,7 +225,7 @@ bool HostInfoLinux::ComputeSupportExeDirectory(FileSpec &file_spec) { if (HostInfoPosix::ComputeSupportExeDirectory(file_spec) && - !file_spec.IsRelativeToCurrentWorkingDirectory() && + file_spec.IsAbsolute() && file_spec.Exists()) return true; file_spec.GetDirectory() = GetProgramFileSpec().GetDirectory(); |