[PATCH] D45140: [Support] Change std::sort to llvm::sort in response to r327219
Mandeep Singh Grang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 8 09:50:16 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL329536: [Support] Change std::sort to llvm::sort in response to r327219 (authored by mgrang, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D45140?vs=140568&id=141556#toc
Repository:
rL LLVM
https://reviews.llvm.org/D45140
Files:
llvm/trunk/lib/Support/SourceMgr.cpp
llvm/trunk/lib/Support/Timer.cpp
Index: llvm/trunk/lib/Support/Timer.cpp
===================================================================
--- llvm/trunk/lib/Support/Timer.cpp
+++ llvm/trunk/lib/Support/Timer.cpp
@@ -284,7 +284,7 @@
void TimerGroup::PrintQueuedTimers(raw_ostream &OS) {
// Sort the timers in descending order by amount of time taken.
- std::sort(TimersToPrint.begin(), TimersToPrint.end());
+ llvm::sort(TimersToPrint.begin(), TimersToPrint.end());
TimeRecord Total;
for (const PrintRecord &Record : TimersToPrint)
Index: llvm/trunk/lib/Support/SourceMgr.cpp
===================================================================
--- llvm/trunk/lib/Support/SourceMgr.cpp
+++ llvm/trunk/lib/Support/SourceMgr.cpp
@@ -270,7 +270,7 @@
: SM(&sm), Loc(L), Filename(FN), LineNo(Line), ColumnNo(Col), Kind(Kind),
Message(Msg), LineContents(LineStr), Ranges(Ranges.vec()),
FixIts(Hints.begin(), Hints.end()) {
- std::sort(FixIts.begin(), FixIts.end());
+ llvm::sort(FixIts.begin(), FixIts.end());
}
static void buildFixItLine(std::string &CaretLine, std::string &FixItLine,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45140.141556.patch
Type: text/x-patch
Size: 1084 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180408/5be5c635/attachment.bin>
More information about the llvm-commits
mailing list