[Lldb-commits] [lldb] [lldb] [disassembler] chore: enhance VariableAnnotator to return structured data: introduce VariableAnnotator::AnnotateStructured method (PR #169408)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Tue Dec 2 15:36:55 PST 2025
================
@@ -300,16 +304,41 @@ bool Disassembler::ElideMixedSourceAndDisassemblyLine(
// disassembled instruction stream, similar to how debug information
// enhances source-level debugging.
std::vector<std::string> VariableAnnotator::Annotate(Instruction &inst) {
+ auto structured_annotations = AnnotateStructured(inst);
+
std::vector<std::string> events;
+ events.reserve(structured_annotations.size());
+
+ for (const auto &annotation : structured_annotations) {
----------------
JDevlieghere wrote:
Maybe this comment was about another line, but I still see `auto` here.
```suggestion
for (const VariableAnnotation &annotation : structured_annotations) {
```
https://github.com/llvm/llvm-project/pull/169408
More information about the lldb-commits
mailing list