mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 16:19:52 +00:00
A reference to the Timer's name is safe, it outlives the contents of the vector.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110517 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -18,7 +18,6 @@
|
|||||||
#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>
|
||||||
|
|
||||||
@@ -165,7 +164,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, std::string> > TimersToPrint;
|
std::vector<std::pair<TimeRecord, StringRef> > 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
|
||||||
|
|||||||
Reference in New Issue
Block a user