mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-16 16:37:42 +00:00
[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:
parent
1ccb3f4229
commit
dc5172a78f
@ -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