Skip to content

Commit 36cbdac

Browse files
authored
Merge pull request #8372 from jasonmolenda/cp/omit-flow-control-field-on-disassembly
Turn off instruction flow control annotations by default (llvm#84607)
2 parents 4560980 + 735fb60 commit 36cbdac

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lldb/source/Core/DumpDataExtractor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ static lldb::offset_t DumpInstructions(const DataExtractor &DE, Stream *s,
150150
if (bytes_consumed) {
151151
offset += bytes_consumed;
152152
const bool show_address = base_addr != LLDB_INVALID_ADDRESS;
153-
const bool show_bytes = true;
154-
const bool show_control_flow_kind = true;
153+
const bool show_bytes = false;
154+
const bool show_control_flow_kind = false;
155155
ExecutionContext exe_ctx;
156156
exe_scope->CalculateExecutionContext(exe_ctx);
157157
disassembler_sp->GetInstructionList().Dump(

lldb/source/Expression/IRExecutionUnit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ Status IRExecutionUnit::DisassembleFunction(Stream &stream,
222222
UINT32_MAX, false, false);
223223

224224
InstructionList &instruction_list = disassembler_sp->GetInstructionList();
225-
instruction_list.Dump(&stream, true, true, /*show_control_flow_kind=*/true,
225+
instruction_list.Dump(&stream, true, true, /*show_control_flow_kind=*/false,
226226
&exe_ctx);
227227

228228
return ret;

lldb/source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ bool UnwindAssemblyInstEmulation::GetNonCallSiteUnwindPlanFromAssembly(
8383
const uint32_t addr_byte_size = m_arch.GetAddressByteSize();
8484
const bool show_address = true;
8585
const bool show_bytes = true;
86-
const bool show_control_flow_kind = true;
86+
const bool show_control_flow_kind = false;
8787
m_cfa_reg_info = *m_inst_emulator_up->GetRegisterInfo(
8888
unwind_plan.GetRegisterKind(), unwind_plan.GetInitialCFARegister());
8989
m_fp_is_cfa = false;

0 commit comments

Comments
 (0)