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 16namespace llvm { 17 18class ModuleDebugInfoPrinterPass 19 : public PassInfoMixin<ModuleDebugInfoPrinterPass> { 20 DebugInfoFinder Finder; 21 raw_ostream &OS; 22 23public: 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