1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00

[llvm-nm] Roll several conditions into a single if. NFCI.

llvm-svn: 258846
This commit is contained in:
Davide Italiano 2016-01-26 19:57:42 +00:00
parent e89fec8eee
commit d5e6621b4e

View File

@ -587,14 +587,9 @@ static void sortAndPrintSymbolList(SymbolicFile &Obj, bool printName,
I != E; ++I) { I != E; ++I) {
uint32_t SymFlags = I->Sym.getFlags(); uint32_t SymFlags = I->Sym.getFlags();
bool Undefined = SymFlags & SymbolRef::SF_Undefined; bool Undefined = SymFlags & SymbolRef::SF_Undefined;
if (!Undefined && UndefinedOnly)
continue;
if (Undefined && DefinedOnly)
continue;
bool Global = SymFlags & SymbolRef::SF_Global; bool Global = SymFlags & SymbolRef::SF_Global;
if (!Global && ExternalOnly) if ((!Undefined && UndefinedOnly) || (Undefined && DefinedOnly) ||
continue; (!Global && ExternalOnly) || (SizeSort && !PrintAddress))
if (SizeSort && !PrintAddress)
continue; continue;
if (PrintFileName) { if (PrintFileName) {
if (!ArchitectureName.empty()) if (!ArchitectureName.empty())