mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[llvm-nm] Roll several conditions into a single if. NFCI.
llvm-svn: 258846
This commit is contained in:
parent
e89fec8eee
commit
d5e6621b4e
@ -587,14 +587,9 @@ static void sortAndPrintSymbolList(SymbolicFile &Obj, bool printName,
|
||||
I != E; ++I) {
|
||||
uint32_t SymFlags = I->Sym.getFlags();
|
||||
bool Undefined = SymFlags & SymbolRef::SF_Undefined;
|
||||
if (!Undefined && UndefinedOnly)
|
||||
continue;
|
||||
if (Undefined && DefinedOnly)
|
||||
continue;
|
||||
bool Global = SymFlags & SymbolRef::SF_Global;
|
||||
if (!Global && ExternalOnly)
|
||||
continue;
|
||||
if (SizeSort && !PrintAddress)
|
||||
if ((!Undefined && UndefinedOnly) || (Undefined && DefinedOnly) ||
|
||||
(!Global && ExternalOnly) || (SizeSort && !PrintAddress))
|
||||
continue;
|
||||
if (PrintFileName) {
|
||||
if (!ArchitectureName.empty())
|
||||
|
Loading…
Reference in New Issue
Block a user