]> granicus.if.org Git - llvm/commit
[llvm-objdump] - Cleanup the code. NFCI.
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 15 Jan 2019 09:19:18 +0000 (09:19 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 15 Jan 2019 09:19:18 +0000 (09:19 +0000)
commit45d116d45ea75efdab6284f2d9737b31feaee62c
tree89b08446ad6c3c5449a2bedb7fb6c2cc67aaacd2
parent42c9ee8c24755e61261cbfa6a4f230f4e045c56e
[llvm-objdump] - Cleanup the code. NFCI.

This is a cosmetic cleanup for the llvm-objdump code.

This patch:
* Renames things to match the official LLVM code style (lower case -> upper case).
* Removes few obviously excessive variables.
* Moves a few lines closer to the place of use, reorders the code a bit to simplify it,
to avoid doing excessive returns and to avoid using 'else` after returns.

I focused only on a llvm-objdump.h/llvm-objdump.cpp files. Few changes in the
MachODump.cpp and COFFDump.cpp are a result of llvm-objdump.h modification.

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

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