From: Benjamin Kramer Date: Sat, 7 Aug 2010 13:07:57 +0000 (+0000) Subject: A reference to the Timer's name is safe, it outlives the contents of the vector. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0055fac7243626a7526c0f0823776e4b82ebd034;p=oota-llvm.git 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 --- diff --git a/include/llvm/Support/Timer.h b/include/llvm/Support/Timer.h index f959136f86a..a5a33ba3240 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 -#include #include #include @@ -165,7 +164,7 @@ struct NamedRegionTimer : public TimeRegion { class TimerGroup { std::string Name; Timer *FirstTimer; // First timer in the group. - std::vector > TimersToPrint; + std::vector > TimersToPrint; TimerGroup **Prev, *Next; // Doubly linked list of TimerGroup's. TimerGroup(const TimerGroup &TG); // DO NOT IMPLEMENT