mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-30 04:56:49 +00:00
Use array_pod_sort instead of std::sort
Per Rafael's review of r194514. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194926 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e9cdbf68e5
commit
0fb32eb56a
@ -372,7 +372,7 @@ static void accumulateAndSortLibcalls(std::vector<StringRef> &Libcalls,
|
|||||||
= Lowering->getLibcallName(static_cast<RTLIB::Libcall>(I)))
|
= Lowering->getLibcallName(static_cast<RTLIB::Libcall>(I)))
|
||||||
Libcalls.push_back(Name);
|
Libcalls.push_back(Name);
|
||||||
|
|
||||||
std::sort(Libcalls.begin(), Libcalls.end());
|
array_pod_sort(Libcalls.begin(), Libcalls.end());
|
||||||
Libcalls.erase(std::unique(Libcalls.begin(), Libcalls.end()),
|
Libcalls.erase(std::unique(Libcalls.begin(), Libcalls.end()),
|
||||||
Libcalls.end());
|
Libcalls.end());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user