ModuleDebugInfoPrinter.h 926 B

1234567891011121314151617181920212223242526272829
  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. #ifndef LLVM_ANALYSIS_MODULEDEBUGINFOPRINTER_H
  9. #define LLVM_ANALYSIS_MODULEDEBUGINFOPRINTER_H
  10. #include "llvm/IR/DebugInfo.h"
  11. #include "llvm/IR/PassManager.h"
  12. #include "llvm/Support/raw_ostream.h"
  13. namespace llvm {
  14. class ModuleDebugInfoPrinterPass
  15. : public PassInfoMixin<ModuleDebugInfoPrinterPass> {
  16. DebugInfoFinder Finder;
  17. raw_ostream &OS;
  18. public:
  19. explicit ModuleDebugInfoPrinterPass(raw_ostream &OS);
  20. PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
  21. };
  22. } // end namespace llvm
  23. #endif // LLVM_ANALYSIS_MODULEDEBUGINFOPRINTER_H