[all-commits] [llvm/llvm-project] e4ba3f: [llvm-readobj] - Simplify conditions used for prin...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Fri May 1 09:05:41 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e4ba3ff35942da35c65315d1a590c2709dc99f07
      https://github.com/llvm/llvm-project/commit/e4ba3ff35942da35c65315d1a590c2709dc99f07
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-05-01 (Fri, 01 May 2020)

  Changed paths:
    M llvm/tools/llvm-readobj/ELFDumper.cpp

  Log Message:
  -----------
  [llvm-readobj] - Simplify conditions used for printing segment mappings. NFCI.

This patch is a NFC refactoring.

Currently the logic is overcomplicated, contains dead conditions and is very hard to read.
This patch performs a very straightforward simplification. Probably it can be
simplified and improved more, but we need to land test cases documenting/testing
all the current functionality first.

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




More information about the All-commits mailing list