Skip to content

Commit

Permalink
[llvm-nm] Simplify. No functional changes intended.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258837 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
dcci committed Jan 26, 2016
1 parent 1ccb3f4 commit dc5172a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tools/llvm-nm/llvm-nm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
}

Expand Down

0 comments on commit dc5172a

Please sign in to comment.