1
0
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:
Davide Italiano 2016-01-26 19:28:51 +00:00
parent d7994b665a
commit d54157738e

View File

@ -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';
}
}