[all-commits] [llvm/llvm-project] 310af4: [llvm-readelf/obj] - Cleanup the code. NFCI.

Georgii Rymar via All-commits all-commits at lists.llvm.org
Wed Sep 23 02:59:07 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 310af42ed9ab259ad05ed46d459203b3473ba66e
      https://github.com/llvm/llvm-project/commit/310af42ed9ab259ad05ed46d459203b3473ba66e
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-09-23 (Wed, 23 Sep 2020)

  Changed paths:
    M llvm/tools/llvm-readobj/ARMEHABIPrinter.h
    M llvm/tools/llvm-readobj/DwarfCFIEHPrinter.h
    M llvm/tools/llvm-readobj/ELFDumper.cpp
    M llvm/tools/llvm-readobj/ObjDumper.cpp
    M llvm/tools/llvm-readobj/ObjDumper.h
    M llvm/tools/llvm-readobj/llvm-readobj.cpp

  Log Message:
  -----------
  [llvm-readelf/obj] - Cleanup the code. NFCI.

This:
1) Replaces pointers with references in many places.
2) Adds few TODOs about fixing possible unhandled errors (in ARMEHABIPrinter.h).
3) Replaces `auto`s with actual types.
4) Removes excessive arguments.
5) Adds `const ELFFile<ELFT> &Obj;` member to `ELFDumper` to simplify the code.

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




More information about the All-commits mailing list