From efd94c56badf696ed7193f4a83c7a59f7dfbfc6e Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Tue, 23 Apr 2019 14:51:27 +0000 Subject: Use llvm::stable_sort While touching the code, simplify if feasible. llvm-svn: 358996 --- llvm/lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp') diff --git a/llvm/lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp b/llvm/lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp index 69e831570e3..de453ee4b84 100644 --- a/llvm/lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp +++ b/llvm/lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp @@ -262,8 +262,7 @@ static std::vector computeAddrMap(ArrayRef Records) { SymOffsets.push_back(SymOffset); SymOffset += Sym.length(); } - std::stable_sort(PublicsByAddr.begin(), PublicsByAddr.end(), - comparePubSymByAddrAndName); + llvm::stable_sort(PublicsByAddr, comparePubSymByAddrAndName); // Fill in the symbol offsets in the appropriate order. std::vector AddrMap; -- cgit v1.2.3