[all-commits] [llvm/llvm-project] 322231: [DwarfDebug][NFC] Factor out 'isInitialized' logic

Felipe de Azevedo Piovezan via All-commits all-commits at lists.llvm.org
Mon Aug 21 12:15:40 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 32223123d3643adb95872da6587b620ffae9a39b
      https://github.com/llvm/llvm-project/commit/32223123d3643adb95872da6587b620ffae9a39b
  Author: Felipe de Azevedo Piovezan <fpiovezan at apple.com>
  Date:   2023-08-21 (Mon, 21 Aug 2023)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h

  Log Message:
  -----------
  [DwarfDebug][NFC] Factor out 'isInitialized' logic

The class 'DbgVariable' can be in one of three states, and the "is any of them
initialization" logic for them is repeated in a couple of places. We may want to
expand this class in the future; as such, we factor out this common logic so
that it is easier to modify.

Differential Revision: https://reviews.llvm.org/D158438




More information about the All-commits mailing list