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 | |
15 | namespace llvm { |
16 | class raw_ostream; |
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 | static bool isRequired() { return true; } |
27 | }; |
28 | } // end namespace llvm |
29 | |
30 | #endif // LLVM_ANALYSIS_MODULEDEBUGINFOPRINTER_H |
31 |