From 7ef71aa221e1b381dfab897156b701e7d5415acd Mon Sep 17 00:00:00 2001 From: Hemant Kulkarni Date: Tue, 29 Mar 2016 14:20:20 +0000 Subject: [PATCH] [llvm-readobj] NFC: Remove unneeded parenthesis git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@264731 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-readobj/ELFDumper.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/llvm-readobj/ELFDumper.cpp b/tools/llvm-readobj/ELFDumper.cpp index 39e6bccc988..4d33cf80eab 100644 --- a/tools/llvm-readobj/ELFDumper.cpp +++ b/tools/llvm-readobj/ELFDumper.cpp @@ -2324,7 +2324,7 @@ void GNUStyle::printRelocation(const ELFO *Obj, const Elf_Shdr *SymTab, 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_ostream &OS, bool Is64, bool IsRela) { 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::checkPTDynamic(const Elf_Phdr &Phdr, const Elf_Shdr &Sec) { template void GNUStyle::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::printDynamicRelocation(const ELFO *Obj, Elf_Rela R, 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. -- 2.11.0