[all-commits] [llvm/llvm-project] 5f2d66: [llvm-objcopy] Fix prints wrong path when dump-sec...

Amr Hesham via All-commits all-commits at lists.llvm.org
Mon Feb 10 13:43:45 PST 2025


  Branch: refs/heads/release/20.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 5f2d66a9d22537332a9630708b0a7602848babc6
      https://github.com/llvm/llvm-project/commit/5f2d66a9d22537332a9630708b0a7602848babc6
  Author: Amr Hesham <amr96 at programmer.net>
  Date:   2025-02-10 (Mon, 10 Feb 2025)

  Changed paths:
    M llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp
    M llvm/lib/ObjCopy/MachO/MachOObjcopy.cpp
    M llvm/lib/ObjCopy/wasm/WasmObjcopy.cpp
    M llvm/test/tools/llvm-objcopy/ELF/dump-section.test
    M llvm/test/tools/llvm-objcopy/MachO/dump-section.test
    M llvm/test/tools/llvm-objcopy/wasm/dump-section.test

  Log Message:
  -----------
  [llvm-objcopy] Fix prints wrong path when dump-section output path doesn't exist (#125345)

Fix printing the correct file path in the error message when the output
file specified by `--dump-section` cannot be opened

Fixes: #125113 on ELF, MachO, Wasm
(cherry picked from commit 66bea0df75ccdd5ffed41d06c7301a116d11abcb)


  Commit: ed762db1e0088a0ad5c7d72e8ad2b08a5b1cf1be
      https://github.com/llvm/llvm-project/commit/ed762db1e0088a0ad5c7d72e8ad2b08a5b1cf1be
  Author: Amr Hesham <amr96 at programmer.net>
  Date:   2025-02-10 (Mon, 10 Feb 2025)

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

  Log Message:
  -----------
  [LLVM][Support] Add new CreateFileError functions (#125906)

Add new CreateFileError functions to create a StringError with the
specified error code and prepend the file path to it

Needed for: #125345

(cherry picked from commit 2464f4ba6e0e50bb30c31b6526fa0bdd5a531217)


Compare: https://github.com/llvm/llvm-project/compare/38333d5e4258...ed762db1e008

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