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:
parent
e89fec8eee
commit
d5e6621b4e
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user