summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/windows
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2018-06-20 08:35:45 +0000
committerPavel Labath <labath@google.com>2018-06-20 08:35:45 +0000
commit2df331b0f78b90a5b0be1e247f3cce97709af964 (patch)
tree3db24e1ba9d0a8ef84761453bd883172a98d587c /lldb/source/Host/windows
parentf29d777f847b2a3d0aec2a499490fa34815fc918 (diff)
downloadbcm5719-llvm-2df331b0f78b90a5b0be1e247f3cce97709af964.tar.gz
bcm5719-llvm-2df331b0f78b90a5b0be1e247f3cce97709af964.zip
Remove dependency from Host to python
Summary: The only reason python was used in the Host module was to compute the python path. I resolve this the same way as D47384 did for clang, by moving the path computation into the python plugin and modifying SBHostOS class to call into this module for ePathTypePythonDir. Reviewers: zturner, jingham, davide Subscribers: mgorny, lldb-commits Differential Revision: https://reviews.llvm.org/D48215 llvm-svn: 335104
Diffstat (limited to 'lldb/source/Host/windows')
-rw-r--r--lldb/source/Host/windows/HostInfoWindows.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/lldb/source/Host/windows/HostInfoWindows.cpp b/lldb/source/Host/windows/HostInfoWindows.cpp
index 25df5a400f0..4b984967be5 100644
--- a/lldb/source/Host/windows/HostInfoWindows.cpp
+++ b/lldb/source/Host/windows/HostInfoWindows.cpp
@@ -103,18 +103,6 @@ FileSpec HostInfoWindows::GetDefaultShell() {
return FileSpec(shell, false);
}
-bool HostInfoWindows::ComputePythonDirectory(FileSpec &file_spec) {
- FileSpec lldb_file_spec = GetShlibDir();
- if (!lldb_file_spec)
- return false;
- llvm::SmallString<64> path(lldb_file_spec.GetDirectory().AsCString());
- llvm::sys::path::remove_filename(path);
- llvm::sys::path::append(path, "lib", "site-packages");
- std::replace(path.begin(), path.end(), '\\', '/');
- file_spec.GetDirectory().SetString(path.c_str());
- return true;
-}
-
bool HostInfoWindows::GetEnvironmentVar(const std::string &var_name,
std::string &var) {
std::wstring wvar_name;
OpenPOWER on IntegriCloud