We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c19e0d6 commit 4500df2Copy full SHA for 4500df2
llvm/include/llvm/Support/Timer.h
@@ -12,13 +12,15 @@
12
#include "llvm/ADT/StringMap.h"
13
#include "llvm/ADT/StringRef.h"
14
#include "llvm/Support/DataTypes.h"
15
+#include "llvm/Support/Mutex.h"
16
#include <cassert>
17
#include <memory>
18
#include <string>
19
#include <vector>
20
21
namespace llvm {
22
23
+class TimerGlobals;
24
class TimerGroup;
25
class raw_ostream;
26
@@ -196,6 +198,10 @@ class TimerGroup {
196
198
TimerGroup(const TimerGroup &TG) = delete;
197
199
void operator=(const TimerGroup &TG) = delete;
200
201
+ friend class TimerGlobals;
202
+ explicit TimerGroup(StringRef Name, StringRef Description,
203
+ sys::SmartMutex<true> &lock);
204
+
205
public:
206
explicit TimerGroup(StringRef Name, StringRef Description);
207
0 commit comments