Fix nm on GCC 5.1 after the C++14 move
authorJF Bastien <jfbastien@apple.com>
Thu, 15 Aug 2019 20:38:42 +0000 (20:38 +0000)
committerJF Bastien <jfbastien@apple.com>
Thu, 15 Aug 2019 20:38:42 +0000 (20:38 +0000)
commitc984dde170bbe71ed40add2fe918ffbb92cbce65
tree9d11a54f4b0efa905828479d0361a545e0c3b44f
parentdeb49a6217dabbb709b13a43b9d4409e9d805cdf
Fix nm on GCC 5.1 after the C++14 move

Summary:
As in D66306, fix the invocation of std::sort with std::function by not using
std::function, since it's easier to read and is broken in libstdc++ from GCC 5.1
(see https://gcc.gnu.org/PR65942).

Reviewers: thakis

Subscribers: jkorous, mgrang, dexonsmith, rupprecht, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D66310

llvm-svn: 369045
llvm/tools/llvm-nm/llvm-nm.cpp