forked from OSchip/llvm-project
[utils] Use llvm::sort (NFC)
This commit is contained in:
parent
029c2257c2
commit
a396e2e088
|
@ -519,7 +519,7 @@ static void DumpAnnotatedInput(raw_ostream &OS, const FileCheckRequest &Req,
|
|||
OS << "Input was:\n<<<<<<\n";
|
||||
|
||||
// Sort annotations.
|
||||
std::sort(Annotations.begin(), Annotations.end(),
|
||||
llvm::sort(Annotations,
|
||||
[](const InputAnnotation &A, const InputAnnotation &B) {
|
||||
// 1. Sort annotations in the order of the input lines.
|
||||
//
|
||||
|
|
|
@ -41,7 +41,7 @@ void GIMatchDag::writeDOTGraph(raw_ostream &OS, StringRef ID) const {
|
|||
SmallVector<std::pair<unsigned, StringRef>, 8> ToPrint;
|
||||
for (const auto &Assignment : N->user_assigned_operand_names())
|
||||
ToPrint.emplace_back(Assignment.first, Assignment.second);
|
||||
llvm::sort(ToPrint.begin(), ToPrint.end());
|
||||
llvm::sort(ToPrint);
|
||||
StringRef Separator = "";
|
||||
for (const auto &Assignment : ToPrint) {
|
||||
OS << Separator << "$" << Assignment.second << "=getOperand("
|
||||
|
|
|
@ -27,7 +27,7 @@ void GIMatchDagInstr::print(raw_ostream &OS) const {
|
|||
SmallVector<std::pair<unsigned, StringRef>, 8> ToPrint;
|
||||
for (const auto &Assignment : UserAssignedNamesForOperands)
|
||||
ToPrint.emplace_back(Assignment.first, Assignment.second);
|
||||
llvm::sort(ToPrint.begin(), ToPrint.end());
|
||||
llvm::sort(ToPrint);
|
||||
StringRef Separator = "";
|
||||
for (const auto &Assignment : ToPrint) {
|
||||
OS << Separator << "$" << Assignment.second << "=getOperand("
|
||||
|
|
Loading…
Reference in New Issue