[llvm] r260173 - [llvm-nm] Remove excessive parenthesis, noticed by David Blaikie.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 8 15:50:23 PST 2016
Author: davide
Date: Mon Feb 8 17:50:23 2016
New Revision: 260173
URL: http://llvm.org/viewvc/llvm-project?rev=260173&view=rev
Log:
[llvm-nm] Remove excessive parenthesis, noticed by David Blaikie.
Modified:
llvm/trunk/tools/llvm-nm/llvm-nm.cpp
Modified: llvm/trunk/tools/llvm-nm/llvm-nm.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-nm/llvm-nm.cpp?rev=260173&r1=260172&r2=260173&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-nm/llvm-nm.cpp (original)
+++ llvm/trunk/tools/llvm-nm/llvm-nm.cpp Mon Feb 8 17:50:23 2016
@@ -793,16 +793,16 @@ static char getSymbolNMTypeChar(MachOObj
static char getSymbolNMTypeChar(const GlobalValue &GV) {
// FIXME: should we print 'b'? At the IR level we cannot be sure if this
// will be in bss or not, but we could approximate.
- return (GV.getValueType()->isFunctionTy()) ? 't' : 'd';
+ return GV.getValueType()->isFunctionTy() ? 't' : 'd';
}
static char getSymbolNMTypeChar(IRObjectFile &Obj, basic_symbol_iterator I) {
const GlobalValue *GV = Obj.getSymbolGV(I->getRawDataRefImpl());
- return (!GV) ? 't' : getSymbolNMTypeChar(*GV);
+ return !GV ? 't' : getSymbolNMTypeChar(*GV);
}
static bool isObject(SymbolicFile &Obj, basic_symbol_iterator I) {
- return (!dyn_cast<ELFObjectFileBase>(&Obj))
+ return !dyn_cast<ELFObjectFileBase>(&Obj)
? false
: elf_symbol_iterator(I)->getELFType() == ELF::STT_OBJECT;
}
More information about the llvm-commits
mailing list