summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/linux/HostInfoLinux.cpp
diff options
context:
space:
mode:
authorChaoren Lin <chaorenl@google.com>2015-06-09 17:54:27 +0000
committerChaoren Lin <chaorenl@google.com>2015-06-09 17:54:27 +0000
commit372e9067a7594afda771769d9cf5ee1d30a7c831 (patch)
tree75bf212e183c754d52e8a634bc00a1e5cc16e32e /lldb/source/Host/linux/HostInfoLinux.cpp
parentefba7812cc8a2e4d544a8dbe4b7b32eb86e88716 (diff)
downloadbcm5719-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.cpp2
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();
OpenPOWER on IntegriCloud