ScriptInterpreterPython cleanup

Instead of #ifdef-ing the contents of all files in the plugin for all
non-python builds, just disable the plugin at the cmake level. Also,
remove spurious extra linking of the Python plugin in liblldb. This
plugin is already included as a part of LLDB_ALL_PLUGINS variable.

llvm-svn: 335236
This commit is contained in:
Pavel Labath
2018-06-21 14:09:15 +00:00
parent 30f2e61b97
commit bcadb5a3d1
10 changed files with 21 additions and 76 deletions

View File

@@ -1,5 +1,4 @@
//===-- PythonDataObjects.cpp ------------------------------------*- C++
//-*-===//
//===-- PythonDataObjects.cpp -----------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
@@ -8,12 +7,6 @@
//
//===----------------------------------------------------------------------===//
#ifdef LLDB_DISABLE_PYTHON
// Python is disabled in this build
#else
#include "PythonDataObjects.h"
#include "ScriptInterpreterPython.h"
@@ -1035,5 +1028,3 @@ bool PythonFile::GetUnderlyingFile(File &file) const {
file.SetOptions(PythonFile::GetOptionsFromMode(py_mode.GetString()));
return file.IsValid();
}
#endif