OSDN Git Service

Refactor: simplify boolean expressions in llvm-objdump
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 23 Mar 2015 18:39:02 +0000 (18:39 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 23 Mar 2015 18:39:02 +0000 (18:39 +0000)
commitc71d3d47a0a7db9784db39a1de1194bd49370e41
tree27d362e9483d910c751d8d0d651474beec953980
parent8b9cc2da07c481baf41799ea21309ff0b6b85cd8
Refactor: simplify boolean expressions in llvm-objdump

Simplify boolean expressions involving `true` and `false` with `clang-tidy`.

Actually upon inspection a bunch of these boolean variables could be
factored away entirely anyway - using find_if and then testing the
result before using it. This also helps reduce indentation in the code
anyway - and a bunch of other related simplification fell out nearby so
I just committed all of that.

Patch by Richard Thomson (legalize@xmission.com)

Differential Revision: http://reviews.llvm.org/D8517

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232984 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/SymbolicFile.h
tools/llvm-objdump/MachODump.cpp