[all-commits] [llvm/llvm-project] 1995fd: [lldb] Extract DW_OP_deref evaluation code (NFC) (...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Thu Jul 3 13:47:09 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1995fd9ac6be4ff0822589f00d5fcaa12688eb87
      https://github.com/llvm/llvm-project/commit/1995fd9ac6be4ff0822589f00d5fcaa12688eb87
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2025-07-03 (Thu, 03 Jul 2025)

  Changed paths:
    M lldb/include/lldb/Expression/DWARFExpression.h
    M lldb/source/Expression/DWARFExpression.cpp

  Log Message:
  -----------
  [lldb] Extract DW_OP_deref evaluation code (NFC) (#146801)

The DWARF expression evaluator is essentially a large state machine
implemented as a switch statement. For anything but trivial operations,
having the evaluation logic implemented inline is difficult to follow,
especially when there are nested switches. This commit moves evaluation
of `DW_OP_deref` out-of-line, similar to `Evaluate_DW_OP_entry_value`.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list