[all-commits] [llvm/llvm-project] a5154a: [llvm-readobj/elf] - Report "bitcode files are not...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Fri Jan 29 01:05:19 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a5154ab9b0c162cadea70d870884a70032c747c1
      https://github.com/llvm/llvm-project/commit/a5154ab9b0c162cadea70d870884a70032c747c1
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M llvm/test/tools/llvm-readobj/basic.test
    M llvm/tools/llvm-readobj/llvm-readobj.cpp

  Log Message:
  -----------
  [llvm-readobj/elf] - Report "bitcode files are not supported" warning for bitcode files.

Fixes https://bugs.llvm.org/show_bug.cgi?id=43543

Currently we report "The file was not recognized as a valid object file" for BC files.
Also, we terminate dumping.

Instead we could report a better warning and try to continue dumping other files.
This is what this patch implements.

Differential revision: https://reviews.llvm.org/D95605




More information about the All-commits mailing list