aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Transforms/Instrumentation/GCOVProfiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Transforms/Instrumentation/GCOVProfiler.h')
-rw-r--r--include/llvm/Transforms/Instrumentation/GCOVProfiler.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Instrumentation/GCOVProfiler.h b/include/llvm/Transforms/Instrumentation/GCOVProfiler.h
new file mode 100644
index 000000000000..dd55fbe29eed
--- /dev/null
+++ b/include/llvm/Transforms/Instrumentation/GCOVProfiler.h
@@ -0,0 +1,31 @@
+//===- Transforms/Instrumentation/GCOVProfiler.h ----------------*- 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, ModuleAnalysisManager &AM);
+
+private:
+ GCOVOptions GCOVOpts;
+};
+
+} // End llvm namespace
+#endif