From bcadb5a3d1b17a581c4ac991f129eb8441a81c48 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Thu, 21 Jun 2018 14:09:15 +0000 Subject: 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 --- .../Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp') diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp index f528dcf..671e8f9 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp @@ -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 -- cgit v1.1