From cc2ba028170e4f00b7f9edc260cf1e833e6eda27 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Mon, 15 Jan 2018 09:56:00 +0000 Subject: Fix HostInfoBase::ComputeSharedLibraryDirectory comment The comment seems to indicate that this function would return the "bin" directory on linux. I've verified that this is not the case, so I'm updating the comment to match. llvm-svn: 322472 --- lldb/source/Host/common/HostInfoBase.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lldb/source/Host/common/HostInfoBase.cpp') diff --git a/lldb/source/Host/common/HostInfoBase.cpp b/lldb/source/Host/common/HostInfoBase.cpp index aff887f9f1d..671094950ba 100644 --- a/lldb/source/Host/common/HostInfoBase.cpp +++ b/lldb/source/Host/common/HostInfoBase.cpp @@ -282,10 +282,8 @@ ArchSpec HostInfoBase::GetAugmentedArchSpec(llvm::StringRef triple) { bool HostInfoBase::ComputeSharedLibraryDirectory(FileSpec &file_spec) { // To get paths related to LLDB we get the path to the executable that - // contains this function. On MacOSX this will be "LLDB.framework/.../LLDB", - // on linux this is assumed to be the "lldb" main executable. If LLDB on - // linux is actually in a shared library (liblldb.so) then this function will - // need to be modified to "do the right thing". + // contains this function. On MacOSX this will be "LLDB.framework/.../LLDB". + // On other posix systems, we will get .../lib(64|32)?/liblldb.so. FileSpec lldb_file_spec( Host::GetModuleFileSpecForHostAddress(reinterpret_cast( -- cgit v1.2.3