summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-11-13 20:28:31 +0000
committerZachary Turner <zturner@google.com>2015-11-13 20:28:31 +0000
commit1f1c5a7b441eb30592b066f6910eabbeff4e662e (patch)
treee36884ef8cf1191161f2dcea7e0bc5d330754ab8 /lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.cpp
parentdd0071f44008cd63e1a7fe0e21cbce7f895019c2 (diff)
downloadbcm5719-llvm-1f1c5a7b441eb30592b066f6910eabbeff4e662e.tar.gz
bcm5719-llvm-1f1c5a7b441eb30592b066f6910eabbeff4e662e.zip
Another fix for LLDB_DISABLE_PYTHON=1
llvm-svn: 253073
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.cpp')
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.cpp
index b66f9a6b891..23ae3d3770f 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.cpp
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.cpp
@@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
+#ifndef LLDB_DISABLE_PYTHON
+
#include "lldb-python.h"
#include "PythonExceptionState.h"
@@ -202,4 +204,6 @@ PythonExceptionState::ReadBacktrace() const
retval.assign(string_data.data(), string_data.size());
return retval;
-} \ No newline at end of file
+}
+
+#endif
OpenPOWER on IntegriCloud