1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +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) {
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())