1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

[TableGen] Use array_pod_sort. NFC

llvm-svn: 253955
This commit is contained in:
Craig Topper 2015-11-24 06:22:43 +00:00
parent 2fe02188ef
commit 6988e2723a

View File

@ -217,7 +217,8 @@ CodeGenRegBank &CodeGenTarget::getRegBank() const {
void CodeGenTarget::ReadRegAltNameIndices() const {
RegAltNameIndices = Records.getAllDerivedDefinitions("RegAltNameIndex");
std::sort(RegAltNameIndices.begin(), RegAltNameIndices.end(), LessRecord());
array_pod_sort(RegAltNameIndices.begin(), RegAltNameIndices.end(),
LessRecord());
}
/// getRegisterByName - If there is a register with the specific AsmName,
@ -253,7 +254,7 @@ void CodeGenTarget::ReadLegalValueTypes() const {
LegalValueTypes.insert(LegalValueTypes.end(), RC.VTs.begin(), RC.VTs.end());
// Remove duplicates.
std::sort(LegalValueTypes.begin(), LegalValueTypes.end());
array_pod_sort(LegalValueTypes.begin(), LegalValueTypes.end());
LegalValueTypes.erase(std::unique(LegalValueTypes.begin(),
LegalValueTypes.end()),
LegalValueTypes.end());