Remove dependency from Host to python
authorPavel Labath <labath@google.com>
Wed, 20 Jun 2018 08:35:45 +0000 (08:35 +0000)
committerPavel Labath <labath@google.com>
Wed, 20 Jun 2018 08:35:45 +0000 (08:35 +0000)
commit2df331b0f78b90a5b0be1e247f3cce97709af964
tree3db24e1ba9d0a8ef84761453bd883172a98d587c
parentf29d777f847b2a3d0aec2a499490fa34815fc918
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
12 files changed:
lldb/include/lldb/Host/macosx/HostInfoMacOSX.h
lldb/include/lldb/Host/posix/HostInfoPosix.h
lldb/include/lldb/Host/windows/HostInfoWindows.h
lldb/source/API/SBHostOS.cpp
lldb/source/Host/CMakeLists.txt
lldb/source/Host/common/HostInfoBase.cpp
lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm
lldb/source/Host/posix/HostInfoPosix.cpp
lldb/source/Host/windows/HostInfoWindows.cpp
lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt
lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h