mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-24 04:45:00 +00:00
[llvm-nm] Simplify the code a bit. NFCI.
Fix a style violation while I'm here. llvm-svn: 259391
This commit is contained in:
parent
a423972bd5
commit
bd28c13e3a
@ -260,15 +260,11 @@ static void darwinPrintSymbol(SymbolicFile &Obj, SymbolListT::iterator I,
|
||||
// use 1, 2 and 3 for section numbers. See below where they are used to
|
||||
// print out fake section names.
|
||||
NType |= MachO::N_SECT;
|
||||
if(SymFlags & SymbolRef::SF_Const)
|
||||
if (SymFlags & SymbolRef::SF_Const)
|
||||
NSect = 3;
|
||||
else {
|
||||
IRObjectFile *IRobj = dyn_cast<IRObjectFile>(&Obj);
|
||||
char c = getSymbolNMTypeChar(*IRobj, I->Sym);
|
||||
if (c == 't')
|
||||
NSect = 1;
|
||||
else
|
||||
NSect = 2;
|
||||
NSect = (getSymbolNMTypeChar(*IRobj, I->Sym) == 't') ? 1 : 2;
|
||||
}
|
||||
}
|
||||
if (SymFlags & SymbolRef::SF_Weak)
|
||||
|
Loading…
x
Reference in New Issue
Block a user