[TableGen] Use array_pod_sort. NFC
authorCraig Topper <craig.topper@gmail.com>
Tue, 24 Nov 2015 06:22:43 +0000 (06:22 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 24 Nov 2015 06:22:43 +0000 (06:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253955 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/CodeGenTarget.cpp

index d0da11b..18e01c3 100644 (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());