summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/common/HostInfoBase.cpp
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2018-01-15 09:56:00 +0000
committerPavel Labath <labath@google.com>2018-01-15 09:56:00 +0000
commitcc2ba028170e4f00b7f9edc260cf1e833e6eda27 (patch)
treefbfec2c14e8c996fbc90ae1e747ee273eb312563 /lldb/source/Host/common/HostInfoBase.cpp
parentfb64e018eb64cd3e801e1fcb10e047ed71489548 (diff)
downloadbcm5719-llvm-cc2ba028170e4f00b7f9edc260cf1e833e6eda27.tar.gz
bcm5719-llvm-cc2ba028170e4f00b7f9edc260cf1e833e6eda27.zip
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
Diffstat (limited to 'lldb/source/Host/common/HostInfoBase.cpp')
-rw-r--r--lldb/source/Host/common/HostInfoBase.cpp6
1 files changed, 2 insertions, 4 deletions
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<void *>(
OpenPOWER on IntegriCloud