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 512e459 commit c51faadCopy full SHA for c51faad
llvm/include/llvm/Support/DebugCounter.h
@@ -76,8 +76,8 @@ class DebugCounter {
76
77
int64_t Count = 0;
78
uint64_t CurrChunkIdx = 0;
79
- std::string Name;
80
- std::string Desc;
+ StringRef Name;
+ StringRef Desc;
81
SmallVector<Chunk> Chunks;
82
83
public:
@@ -157,7 +157,7 @@ class DebugCounter {
157
unsigned int getNumCounters() const { return Counters.size(); }
158
159
// Return the name and description of the counter with the given info.
160
- std::pair<std::string, std::string> getCounterDesc(CounterInfo *Info) const {
+ std::pair<StringRef, StringRef> getCounterDesc(CounterInfo *Info) const {
161
return {Info->Name, Info->Desc};
162
}
163
0 commit comments