[llvm] r264731 - [llvm-readobj] NFC: Remove unneeded parenthesis
Hemant Kulkarni via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 29 07:20:20 PDT 2016
Author: khemant
Date: Tue Mar 29 09:20:20 2016
New Revision: 264731
URL: http://llvm.org/viewvc/llvm-project?rev=264731&view=rev
Log:
[llvm-readobj] NFC: Remove unneeded parenthesis
Modified:
llvm/trunk/tools/llvm-readobj/ELFDumper.cpp
Modified: llvm/trunk/tools/llvm-readobj/ELFDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-readobj/ELFDumper.cpp?rev=264731&r1=264730&r2=264731&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-readobj/ELFDumper.cpp (original)
+++ llvm/trunk/tools/llvm-readobj/ELFDumper.cpp Tue Mar 29 09:20:20 2016
@@ -2324,7 +2324,7 @@ void GNUStyle<ELFT>::printRelocation(con
StringRef StrTable = unwrapOrError(Obj->getStringTableForSymtab(*SymTab));
StringRef TargetName;
const Elf_Sym *Sym = nullptr;
- unsigned Width = (ELFT::Is64Bits) ? 16 : 8;
+ unsigned Width = ELFT::Is64Bits ? 16 : 8;
unsigned Bias = ELFT::Is64Bits ? 8 : 0;
// First two fields are bit width dependent. The rest of them are after are
@@ -2376,7 +2376,7 @@ static inline void printRelocHeader(raw_
OS << " Offset Info Type Sym. Value "
<< "Symbol's Name";
if (IsRela)
- OS << ((IsRela) ? " + Addend" : "");
+ OS << (IsRela ? " + Addend" : "");
OS << "\n";
}
@@ -2756,9 +2756,9 @@ bool GNUStyle<ELFT>::checkPTDynamic(cons
template <class ELFT>
void GNUStyle<ELFT>::printProgramHeaders(const ELFO *Obj) {
- unsigned Bias = (ELFT::Is64Bits) ? 8 : 0;
- unsigned Width = (ELFT::Is64Bits) ? 18 : 10;
- unsigned SizeWidth = (ELFT::Is64Bits) ? 8 : 7;
+ unsigned Bias = ELFT::Is64Bits ? 8 : 0;
+ unsigned Width = ELFT::Is64Bits ? 18 : 10;
+ unsigned SizeWidth = ELFT::Is64Bits ? 8 : 7;
std::string Type, Offset, VMA, LMA, FileSz, MemSz, Flag, Align;
const Elf_Ehdr *Header = Obj->getHeader();
@@ -2829,7 +2829,7 @@ void GNUStyle<ELFT>::printDynamicRelocat
bool IsRela) {
SmallString<32> RelocName;
StringRef SymbolName;
- unsigned Width = (ELFT::Is64Bits) ? 16 : 8;
+ unsigned Width = ELFT::Is64Bits ? 16 : 8;
unsigned Bias = ELFT::Is64Bits ? 8 : 0;
// First two fields are bit width dependent. The rest of them are after are
// fixed width.
More information about the llvm-commits
mailing list