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)
commit33dd45d06ad23fbfbc25a472d38a40dc16758ae0
treed01e766d859b98222d5877442072f5983cb4a06d
parent5a1774da7cfcb25853049e1b63e07c3e98de0fc1
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

llvm-svn: 232984
llvm/include/llvm/Object/SymbolicFile.h
llvm/tools/llvm-objdump/MachODump.cpp