Skip to content

Commit 37f34cc

Browse files
committed
[lldb-with-tools] Rename create_swift_disassemble_viewcfg => disassemble_asm_cfg.
Now the python method matches the name used on the lldb command line.
1 parent eb96da5 commit 37f34cc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

utils/lldb/lldbToolBox.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ def import_llvm_dataformatters(debugger):
3636
"blockifyasm")
3737

3838

39-
def create_swift_disassemble_viewcfg(debugger, command, exec_ctx, result,
40-
internal_dict):
39+
def disassemble_asm_cfg(debugger, command, exec_ctx, result, internal_dict):
4140
"""
4241
This function disassembles the current assembly frame into a temporary file
4342
and then uses that temporary file as input to blockifyasm | viewcfg. This
@@ -71,6 +70,6 @@ def disassemble_to_file(debugger, command, exec_ctx, result, internal_dict):
7170
def __lldb_init_module(debugger, internal_dict):
7271
import_llvm_dataformatters(debugger)
7372
debugger.HandleCommand('command script add disassemble-asm-cfg '
74-
'-f lldbToolBox.create_swift_disassemble_viewcfg')
73+
'-f lldbToolBox.disassemble_asm_cfg')
7574
debugger.HandleCommand('command script add disassemble-to-file '
7675
'-f lldbToolBox.disassemble_to_file')

0 commit comments

Comments
 (0)