[LLDB] Add SBInstruction::GetControlFlowKind()
authorJakob Johnson <johnsonjakob99@gmail.com>
Tue, 2 Aug 2022 18:26:24 +0000 (11:26 -0700)
committerJakob Johnson <johnsonjakob99@gmail.com>
Tue, 2 Aug 2022 22:42:45 +0000 (15:42 -0700)
commit6cbc6e9a6d5f0ef9c406f718dd0c3e6dd6dffeef
tree8de23232d9268e5c168dd7068392a2bcc041c8cd
parent4f0262c1640531dd431cf205f4b802b1fabb6489
[LLDB] Add SBInstruction::GetControlFlowKind()

D128477 adds the control flow kind for `Instruction` and displays this
in the `thread trace dump instruction -k` command.

This diff exposes the control flow kind via the new
`SBInstruction::GetControlFlowKind` method.

I've expanded `TestDisassembleRawData` to test this method, but please
let me know if there are any other unittests that should also be updated.

Test Plan:
`./bin/lldb-dotest -p TestDisassembleRawData`

Differential Revision: https://reviews.llvm.org/D131005
lldb/bindings/interface/SBInstruction.i
lldb/include/lldb/API/SBInstruction.h
lldb/source/API/SBInstruction.cpp
lldb/test/API/python_api/disassemble-raw-data/TestDisassembleRawData.py