diff options
Diffstat (limited to 'include/llvm/Transforms/GCOVProfiler.h')
-rw-r--r-- | include/llvm/Transforms/GCOVProfiler.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/llvm/Transforms/GCOVProfiler.h b/include/llvm/Transforms/GCOVProfiler.h new file mode 100644 index 0000000000000..f6521901a33ed --- /dev/null +++ b/include/llvm/Transforms/GCOVProfiler.h @@ -0,0 +1,31 @@ +//===- Transforms/GCOVProfiler.h - GCOVProfiler pass ----------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// This file provides the interface for the GCOV style profiler pass. +//===----------------------------------------------------------------------===// + +#ifndef LLVM_TRANSFORMS_GCOVPROFILER_H +#define LLVM_TRANSFORMS_GCOVPROFILER_H + +#include "llvm/IR/PassManager.h" +#include "llvm/Transforms/Instrumentation.h" + +namespace llvm { +/// The gcov-style instrumentation pass +class GCOVProfilerPass : public PassInfoMixin<GCOVProfilerPass> { +public: + GCOVProfilerPass(const GCOVOptions &Options = GCOVOptions::getDefault()) : GCOVOpts(Options) { } + PreservedAnalyses run(Module &M, AnalysisManager<Module> &AM); + +private: + GCOVOptions GCOVOpts; +}; + +} // End llvm namespace +#endif |