llvm/llvm/lib/Support/DebugCounter.cpp

#include "llvm/Support/DebugCounter.h"

#include "DebugOptions.h"

#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Format.h"

usingnamespacellvm;

namespace llvm {

void DebugCounter::Chunk::print(llvm::raw_ostream &OS) {}

void DebugCounter::printChunks(raw_ostream &OS, ArrayRef<Chunk> Chunks) {}

bool DebugCounter::parseChunks(StringRef Str, SmallVector<Chunk> &Chunks) {}

} // namespace llvm

namespace {
// This class overrides the default list implementation of printing so we
// can pretty print the list of debug counter options.  This type of
// dynamic option is pretty rare (basically this and pass lists).
class DebugCounterList : public cl::list<std::string, DebugCounter> {};

// All global objects associated to the DebugCounter, including the DebugCounter
// itself, are owned by a single global instance of the DebugCounterOwner
// struct. This makes it easier to control the order in which constructors and
// destructors are run.
struct DebugCounterOwner : DebugCounter {};

} // anonymous namespace

void llvm::initDebugCounterOptions() {}

DebugCounter &DebugCounter::instance() {}

// This is called by the command line parser when it sees a value for the
// debug-counter option defined above.
void DebugCounter::push_back(const std::string &Val) {}

void DebugCounter::print(raw_ostream &OS) const {}

bool DebugCounter::shouldExecuteImpl(unsigned CounterName) {}

LLVM_DUMP_METHOD void DebugCounter::dump() const {}