mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
[llvm-nm] Simplify. No functional changes intended.
llvm-svn: 258837
This commit is contained in:
parent
d7994b665a
commit
d54157738e
@ -788,12 +788,11 @@ static char getSymbolNMTypeChar(MachOObjectFile &Obj, basic_symbol_iterator I) {
|
||||
StringRef SegmentName = Obj.getSectionFinalSegmentName(Ref);
|
||||
if (SegmentName == "__TEXT" && SectionName == "__text")
|
||||
return 't';
|
||||
else if (SegmentName == "__DATA" && SectionName == "__data")
|
||||
if (SegmentName == "__DATA" && SectionName == "__data")
|
||||
return 'd';
|
||||
else if (SegmentName == "__DATA" && SectionName == "__bss")
|
||||
if (SegmentName == "__DATA" && SectionName == "__bss")
|
||||
return 'b';
|
||||
else
|
||||
return 's';
|
||||
return 's';
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user