[NFC][trace] simplify the instruction dumper
authorWalter Erquinigo <wallace@fb.com>
Wed, 20 Apr 2022 04:57:31 +0000 (21:57 -0700)
committerWalter Erquinigo <wallace@fb.com>
Tue, 26 Apr 2022 03:02:48 +0000 (20:02 -0700)
commit35e60f5de180aea55ed478298f4b40f04dcc57d1
treeb2349175405f30f71d330d759e9c5ea2918ce8dd
parent998014830549b411b0f52f0fbf6c997a4faf3d8e
[NFC][trace] simplify the instruction dumper

TraceInstructionDumper::DumpInstructions was becoming too big, so I'm
refactoring it into smaller functions. I also made some static methods proper
instance methods to simplify calls. Other minor improvements are also done.

Differential Revision: https://reviews.llvm.org/D124064
lldb/include/lldb/Target/TraceInstructionDumper.h
lldb/source/Target/TraceInstructionDumper.cpp