Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions llvm/lib/Support/DebugCounter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ DebugCounter &DebugCounter::instance() {
void DebugCounter::push_back(const std::string &Val) {
if (Val.empty())
return;
#ifdef NDEBUG
// isCountingEnabled is hardcoded to false in NDEBUG.
errs() << "Requested --debug-counter in non-debug LLVM build. This is a "
"no-op.\n";
#endif

// The strings should come in as counter=chunk_list
auto CounterPair = StringRef(Val).split('=');
Expand Down
Loading