mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-31 08:16:47 +00:00 
			
		
		
		
	Roll back my last two commits, valgrind complains.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110518 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		| @@ -18,6 +18,7 @@ | |||||||
| #include "llvm/System/DataTypes.h" | #include "llvm/System/DataTypes.h" | ||||||
| #include "llvm/ADT/StringRef.h" | #include "llvm/ADT/StringRef.h" | ||||||
| #include <cassert> | #include <cassert> | ||||||
|  | #include <string> | ||||||
| #include <vector> | #include <vector> | ||||||
| #include <utility> | #include <utility> | ||||||
|  |  | ||||||
| @@ -164,7 +165,7 @@ struct NamedRegionTimer : public TimeRegion { | |||||||
| class TimerGroup { | class TimerGroup { | ||||||
|   std::string Name; |   std::string Name; | ||||||
|   Timer *FirstTimer;   // First timer in the group. |   Timer *FirstTimer;   // First timer in the group. | ||||||
|   std::vector<std::pair<TimeRecord, StringRef> > TimersToPrint; |   std::vector<std::pair<TimeRecord, std::string> > TimersToPrint; | ||||||
|    |    | ||||||
|   TimerGroup **Prev, *Next; // Doubly linked list of TimerGroup's. |   TimerGroup **Prev, *Next; // Doubly linked list of TimerGroup's. | ||||||
|   TimerGroup(const TimerGroup &TG);      // DO NOT IMPLEMENT |   TimerGroup(const TimerGroup &TG);      // DO NOT IMPLEMENT | ||||||
|   | |||||||
| @@ -20,7 +20,6 @@ | |||||||
| #include "llvm/System/Mutex.h" | #include "llvm/System/Mutex.h" | ||||||
| #include "llvm/System/Process.h" | #include "llvm/System/Process.h" | ||||||
| #include "llvm/ADT/OwningPtr.h" | #include "llvm/ADT/OwningPtr.h" | ||||||
| #include "llvm/ADT/STLExtras.h" |  | ||||||
| #include "llvm/ADT/StringMap.h" | #include "llvm/ADT/StringMap.h" | ||||||
| using namespace llvm; | using namespace llvm; | ||||||
|  |  | ||||||
| @@ -316,7 +315,7 @@ void TimerGroup::addTimer(Timer &T) { | |||||||
|  |  | ||||||
| void TimerGroup::PrintQueuedTimers(raw_ostream &OS) { | void TimerGroup::PrintQueuedTimers(raw_ostream &OS) { | ||||||
|   // Sort the timers in descending order by amount of time taken. |   // Sort the timers in descending order by amount of time taken. | ||||||
|   array_pod_sort(TimersToPrint.begin(), TimersToPrint.end()); |   std::sort(TimersToPrint.begin(), TimersToPrint.end()); | ||||||
|    |    | ||||||
|   TimeRecord Total; |   TimeRecord Total; | ||||||
|   for (unsigned i = 0, e = TimersToPrint.size(); i != e; ++i) |   for (unsigned i = 0, e = TimersToPrint.size(); i != e; ++i) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user