From 73a272354df69daf1c4869af61e153939b3bbe52 Mon Sep 17 00:00:00 2001 From: George Rimar Date: Tue, 15 Jan 2019 09:19:18 +0000 Subject: [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 llvm-svn: 351171 --- llvm/tools/llvm-objdump/COFFDump.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/tools/llvm-objdump/COFFDump.cpp') diff --git a/llvm/tools/llvm-objdump/COFFDump.cpp b/llvm/tools/llvm-objdump/COFFDump.cpp index a7ee49535d6..55607ec299b 100644 --- a/llvm/tools/llvm-objdump/COFFDump.cpp +++ b/llvm/tools/llvm-objdump/COFFDump.cpp @@ -455,7 +455,7 @@ static bool getPDataSection(const COFFObjectFile *Obj, Rels.push_back(Reloc); // Sort relocations by address. - llvm::sort(Rels, RelocAddressLess); + llvm::sort(Rels, isRelocAddressLess); ArrayRef Contents; error(Obj->getSectionContents(Pdata, Contents)); -- cgit v1.2.3