[all-commits] [llvm/llvm-project] 352029: [llvm-readelf] - Introduce describe() helper funct...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Wed Jul 22 04:27:47 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3520297039d69381cb5776235209fc08863b9095
      https://github.com/llvm/llvm-project/commit/3520297039d69381cb5776235209fc08863b9095
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-07-22 (Wed, 22 Jul 2020)

  Changed paths:
    M llvm/test/Object/invalid.test
    M llvm/test/tools/llvm-readobj/ELF/dyn-symbols.test
    M llvm/test/tools/llvm-readobj/ELF/dynamic-malformed.test
    M llvm/test/tools/llvm-readobj/ELF/mips-plt.test
    M llvm/tools/llvm-readobj/ELFDumper.cpp

  Log Message:
  -----------
  [llvm-readelf] - Introduce describe() helper functions.

These functions can be used to generate strings like
"SHT_?? section with index ?" to describe sections in error/warning messages,
what helps to simplify and generalize them.

Also this allows to isolate the following common code pattern:
`&Sec - &cantFail(Obj->sections()).front();`

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




More information about the All-commits mailing list