mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 21:55:39 +08:00
[lldb][NFC] clang-format DisassemblerLLVMC.cpp
Noticed these bits in a PR I'm reviewing. Might as well fix them now.
This commit is contained in:
@@ -559,7 +559,7 @@ public:
|
||||
lldb::InstructionControlFlowKind
|
||||
GetControlFlowKind(const lldb_private::ExecutionContext *exe_ctx) override {
|
||||
DisassemblerScope disasm(*this, exe_ctx);
|
||||
if (disasm){
|
||||
if (disasm) {
|
||||
if (disasm->GetArchitecture().GetMachine() == llvm::Triple::x86)
|
||||
return x86::GetControlFlowKind(/*is_64b=*/false, m_opcode);
|
||||
else if (disasm->GetArchitecture().GetMachine() == llvm::Triple::x86_64)
|
||||
@@ -1608,9 +1608,8 @@ DisassemblerLLVMC::DisassemblerLLVMC(const ArchSpec &arch,
|
||||
// thumb instruction disassembler.
|
||||
if (llvm_arch == llvm::Triple::arm) {
|
||||
std::string thumb_triple(thumb_arch.GetTriple().getTriple());
|
||||
m_alternate_disasm_up =
|
||||
MCDisasmInstance::Create(thumb_triple.c_str(), "", features_str.c_str(),
|
||||
flavor, *this);
|
||||
m_alternate_disasm_up = MCDisasmInstance::Create(
|
||||
thumb_triple.c_str(), "", features_str.c_str(), flavor, *this);
|
||||
if (!m_alternate_disasm_up)
|
||||
m_disasm_up.reset();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user