summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-11-24 06:22:43 +0000
committerCraig Topper <craig.topper@gmail.com>2015-11-24 06:22:43 +0000
commit030418802afbce0586c4d92a4c07ae3fcb5eb1e4 (patch)
treefea840a36da5c5be6cc8047e50ba0c68e875fa06 /llvm/utils
parent42418aba58fe508077073336f6cdab7619c1bdef (diff)
downloadbcm5719-llvm-030418802afbce0586c4d92a4c07ae3fcb5eb1e4.tar.gz
bcm5719-llvm-030418802afbce0586c4d92a4c07ae3fcb5eb1e4.zip
[TableGen] Use array_pod_sort. NFC
llvm-svn: 253955
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/TableGen/CodeGenTarget.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/CodeGenTarget.cpp b/llvm/utils/TableGen/CodeGenTarget.cpp
index d0da11bcb4a..18e01c3ec86 100644
--- a/llvm/utils/TableGen/CodeGenTarget.cpp
+++ b/llvm/utils/TableGen/CodeGenTarget.cpp
@@ -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());
OpenPOWER on IntegriCloud