xref: /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ModuleDebugInfoPrinter.h (revision c1d255d3ffdbe447de3ab875bf4e7d7accc5bfc5)
1 //===- ModuleDebugInfoPrinter.h - -----------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_ANALYSIS_MODULEDEBUGINFOPRINTER_H
10 #define LLVM_ANALYSIS_MODULEDEBUGINFOPRINTER_H
11 
12 #include "llvm/IR/DebugInfo.h"
13 #include "llvm/IR/PassManager.h"
14 #include "llvm/Support/raw_ostream.h"
15 
16 namespace llvm {
17 
18 class ModuleDebugInfoPrinterPass
19     : public PassInfoMixin<ModuleDebugInfoPrinterPass> {
20   DebugInfoFinder Finder;
21   raw_ostream &OS;
22 
23 public:
24   explicit ModuleDebugInfoPrinterPass(raw_ostream &OS);
25   PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
26 };
27 } // end namespace llvm
28 
29 #endif // LLVM_ANALYSIS_MODULEDEBUGINFOPRINTER_H
30