[llvm-nm] - Simplify the code in dumpSymbolNamesFromObject. NFC.
authorGeorgii Rymar <grimar@accesssoftek.com>
Thu, 14 Jan 2021 11:45:05 +0000 (14:45 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Fri, 15 Jan 2021 09:29:49 +0000 (12:29 +0300)
commit021ea78a97ed8f4796d92a61cdf62284def36f1e
tree2f99475fca080553c0974355d4fd7938d568670f
parenta10300a2b27c426556f9266364337d5d546a3c14
[llvm-nm] - Simplify the code in dumpSymbolNamesFromObject. NFC.

It is possible to simplify the logic that extracts symbol names.

D94667 made the `NMSymbol::Name` to be `std::string`,
what allowed this simplification.

Differential revision: https://reviews.llvm.org/D94669
llvm/tools/llvm-nm/llvm-nm.cpp