[llvm-nm] Simplify. No functional changes intended.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258837 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Davide Italiano 2016-01-26 19:28:51 +00:00
parent 1ccb3f4229
commit dc5172a78f

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