Move GetControlFlowKind's logic to DisassemblerLLVMC.cpp
authorWalter Erquinigo <wallace@fb.com>
Tue, 26 Jul 2022 18:44:50 +0000 (11:44 -0700)
committerWalter Erquinigo <wallace@fb.com>
Tue, 26 Jul 2022 19:05:23 +0000 (12:05 -0700)
commit0538e5431afdb1fa05bdcedf70ee502ccfcd112a
tree30a4194beb91394aebaf798c7cedcaa2119bedde
parent4f676c2599eb9c5c57528ebad93269a9ee30d7ca
Move GetControlFlowKind's logic to DisassemblerLLVMC.cpp

This diff move the logic of `GetControlFlowKind()` from Disassembler.cpp to DisassemblerLLVMC.cpp.
Here's details:
- Actual logic of GetControlFlowKind() move to `DisassemblerLLVMC.cpp`, and we can check underlying architecture using `DisassemblerScope` there.
- With this change, passing 'triple' to `GetControlFlowKind()` is no more required.

Reviewed By: wallace

Differential Revision: https://reviews.llvm.org/D130320
lldb/include/lldb/Core/Disassembler.h
lldb/source/Core/Disassembler.cpp
lldb/source/Plugins/Disassembler/LLVMC/DisassemblerLLVMC.cpp
lldb/unittests/Disassembler/x86/TestGetControlFlowKindx86.cpp