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