summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-04-08 08:43:07 +0000
committerPavel Labath <pavel@labath.sk>2019-04-08 08:43:07 +0000
commitf2348c88f1d6c1a82ee350f4f5116b50e8415d6d (patch)
tree54bc4b1d98a5f87d16dd11b5f83fe5b476c33b79 /lldb/scripts/Python
parent618dcfcaa3386a15418e02d0f8c5d06bebf6a2cb (diff)
downloadbcm5719-llvm-f2348c88f1d6c1a82ee350f4f5116b50e8415d6d.tar.gz
bcm5719-llvm-f2348c88f1d6c1a82ee350f4f5116b50e8415d6d.zip
modify-python-lldb.py: Remove ifdef SWIG-removing code
There are no patterns like that in the generated swig files (there probably were some back in the days when we were running swig over the header files directly), so this is dead code and has no effect on the generated file. llvm-svn: 357890
Diffstat (limited to 'lldb/scripts/Python')
-rw-r--r--lldb/scripts/Python/modify-python-lldb.py17
1 files changed, 4 insertions, 13 deletions
diff --git a/lldb/scripts/Python/modify-python-lldb.py b/lldb/scripts/Python/modify-python-lldb.py
index ea33c0b936d..4df1df94dfb 100644
--- a/lldb/scripts/Python/modify-python-lldb.py
+++ b/lldb/scripts/Python/modify-python-lldb.py
@@ -9,17 +9,13 @@
# As a cleanup step, it also removes the 'residues' from the autodoc features of
# swig. For an example, take a look at SBTarget.h header file, where we take
# advantage of the already existing doxygen C++-docblock and make it the Python
-# docstring for the same method. The 'residues' in this context include the
-# '#endif', the '#ifdef SWIG', the c comment marker, the trailing blank (SPC's)
-# line, and the doxygen comment start marker.
+# docstring for the same method. The 'residues' in this context include the c
+# comment marker, the trailing blank (SPC's) line, and the doxygen comment start
+# marker.
#
# In addition to the 'residues' removal during the cleanup step, it also
# transforms the 'char' data type (which was actually 'char *' but the 'autodoc'
# feature of swig removes ' *' from it) into 'str' (as a Python str type).
-#
-# It also calls SBDebugger.Initialize() to initialize the lldb debugger
-# subsystem.
-#
# System modules
import sys
@@ -47,8 +43,6 @@ else:
#
# Residues to be removed.
#
-c_endif_swig = "#endif"
-c_ifdef_swig = "#ifdef SWIG"
c_comment_marker = "//------------"
# The pattern for recognizing the doxygen comment block line.
doxygen_comment_start = re.compile("^\s*(/// ?)")
@@ -133,10 +127,7 @@ for line in content.splitlines():
state |= CLEANUP_DOCSTRING
if (state & CLEANUP_DOCSTRING):
- # Cleanse the lldb.py of the autodoc'ed residues.
- if c_ifdef_swig in line or c_endif_swig in line:
- continue
- # As well as the comment marker line.
+ # Remove the comment marker line.
if c_comment_marker in line:
continue
OpenPOWER on IntegriCloud