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