LLDB mainline
lldb_private::VariableAnnotator Class Reference

Tracks live variable annotations across instructions and produces per-instruction "events" like name = RDI or name = <undef>. More...

#include <Disassembler.h>

Public Member Functions

std::vector< std::string > Annotate (Instruction &inst)
 Compute annotation strings for a single instruction and update m_live_vars.
std::vector< VariableAnnotationAnnotateStructured (Instruction &inst)
 Returns structured data for all variables relevant at this instruction.

Private Attributes

llvm::DenseMap< lldb::user_id_t, VariableAnnotationm_live_vars

Detailed Description

Tracks live variable annotations across instructions and produces per-instruction "events" like name = RDI or name = <undef>.

Definition at line 598 of file Disassembler.h.

Member Function Documentation

◆ Annotate()

std::vector< std::string > VariableAnnotator::Annotate ( Instruction & inst)

Compute annotation strings for a single instruction and update m_live_vars.

Returns only the events that should be printed at this instruction.

Definition at line 314 of file Disassembler.cpp.

References AnnotateStructured(), kUndefLocation, and kUndefLocationFormatted.

Referenced by lldb_private::Disassembler::PrintInstructions().

◆ AnnotateStructured()

Member Data Documentation

◆ m_live_vars

llvm::DenseMap<lldb::user_id_t, VariableAnnotation> lldb_private::VariableAnnotator::m_live_vars
private

Definition at line 601 of file Disassembler.h.

Referenced by AnnotateStructured().


The documentation for this class was generated from the following files: