[Lldb-commits] [lldb] [lldb] [disassembler] chore: enhance VariableAnnotator to return structured data (PR #165163)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Mon Oct 27 21:20:01 PDT 2025


================
@@ -347,3 +350,67 @@ bool SBInstruction::TestEmulation(lldb::SBStream &output_stream,
     return inst_sp->TestEmulation(output_stream.ref(), test_file);
   return false;
 }
+
+lldb::SBStructuredData
+SBInstruction::GetVariableAnnotations(lldb::SBTarget target) {
+  LLDB_INSTRUMENT_VA(this, target);
+
+  SBStructuredData result;
+
+  if (!m_opaque_sp || !m_opaque_sp->IsValid() || !target.IsValid()) {
+    return result;
+  }
----------------
JDevlieghere wrote:

No braces around single line ifs. This applies to the whole patch. Match the existing code style of the surrounding code.

https://github.com/llvm/llvm-project/pull/165163


More information about the lldb-commits mailing list