summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Support/Timer.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/Support/Timer.h b/include/llvm/Support/Timer.h
index f959136f86..a5a33ba324 100644
--- a/include/llvm/Support/Timer.h
+++ b/include/llvm/Support/Timer.h
@@ -18,7 +18,6 @@
#include "llvm/System/DataTypes.h"
#include "llvm/ADT/StringRef.h"
#include <cassert>
-#include <string>
#include <vector>
#include <utility>
@@ -165,7 +164,7 @@ struct NamedRegionTimer : public TimeRegion {
class TimerGroup {
std::string Name;
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(const TimerGroup &TG); // DO NOT IMPLEMENT