[all-commits] [llvm/llvm-project] 65fbe3: [DwarfDebug] Restore code that make comments stay ...

Björn Pettersson via All-commits all-commits at lists.llvm.org
Tue Jan 18 00:57:14 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 65fbe38f0a20adac8853cb5123d57d8ce3ef17bc
      https://github.com/llvm/llvm-project/commit/65fbe38f0a20adac8853cb5123d57d8ce3ef17bc
  Author: Bjorn Pettersson <bjorn.a.pettersson at ericsson.com>
  Date:   2022-01-18 (Tue, 18 Jan 2022)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/ByteStreamer.h
    M llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
    M llvm/test/DebugInfo/X86/convert-loclist.ll

  Log Message:
  -----------
  [DwarfDebug] Restore code that make comments stay aligned in DwarfDebug::emitDebugLocEntry

Commit 2bddab25dba8d4b0 removed a piece of code from
DwarfDebug::emitDebugLocEntry that according to code comments
"Make sure comments stay aligned".

This patch restores that piece of code, together with the addition
of some extra checks in an existing lit test to work as a regression
test. Without this patch we incorrectly get
  .byte   159                             # 0
instead of
  .byte   159                             # DW_OP_stack_value

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




More information about the All-commits mailing list