[all-commits] [llvm/llvm-project] 33b028: [Support] Add WrappedError class

aokblast via All-commits all-commits at lists.llvm.org
Thu Apr 16 06:59:29 PDT 2026


  Branch: refs/heads/users/aokblast/obj/elf/warnhandle
  Home:   https://github.com/llvm/llvm-project
  Commit: 33b0281bc9e8cb7f0f3b037917e62924f0f77af2
      https://github.com/llvm/llvm-project/commit/33b0281bc9e8cb7f0f3b037917e62924f0f77af2
  Author: ShengYi Hung <aokblast at FreeBSD.org>
  Date:   2026-04-16 (Thu, 16 Apr 2026)

  Changed paths:
    M llvm/include/llvm/Support/Error.h
    M llvm/lib/Support/Error.cpp
    M llvm/unittests/Support/ErrorTest.cpp

  Log Message:
  -----------
  [Support] Add WrappedError class

The error consumer filters duplicate errors based on a portion of the
error message. Introduce a new Error kind that carries a prefix string
to support this use case.


  Commit: 83ce7d9b2ad832489cd1bccc58df73986f82b80d
      https://github.com/llvm/llvm-project/commit/83ce7d9b2ad832489cd1bccc58df73986f82b80d
  Author: ShengYi Hung <aokblast at FreeBSD.org>
  Date:   2026-04-16 (Thu, 16 Apr 2026)

  Changed paths:
    M llvm/include/llvm/Object/ELF.h
    M llvm/lib/Object/ELF.cpp
    M llvm/tools/llvm-objdump/llvm-objdump.cpp
    M llvm/tools/llvm-objdump/llvm-objdump.h
    M llvm/tools/llvm-readobj/ELFDumper.cpp
    M llvm/tools/llvm-readobj/ObjDumper.cpp
    M llvm/tools/llvm-readobj/ObjDumper.h
    M llvm/unittests/Object/ELFObjectFileTest.cpp

  Log Message:
  -----------
  [Object][ELF] Pass Error to WarningHandler

Warning consumers may need to handle errors based on their type. Pass
the Error object instead of a string representation to enable this. This
also brings WarningHandler in line with Support/WithColor.h.


Compare: https://github.com/llvm/llvm-project/compare/0b016dc27c12...83ce7d9b2ad8

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