#include "llvm/Analysis/ModuleDebugInfoPrinter.h"
#include "llvm/Analysis/Passes.h"
#include "llvm/BinaryFormat/Dwarf.h"
#include "llvm/IR/DebugInfo.h"
#include "llvm/IR/PassManager.h"
#include "llvm/InitializePasses.h"
#include "llvm/Pass.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
usingnamespacellvm;
static void printFile(raw_ostream &O, StringRef Filename, StringRef Directory,
unsigned Line = 0) { … }
static void printModuleDebugInfo(raw_ostream &O, const Module *M,
const DebugInfoFinder &Finder) { … }
ModuleDebugInfoPrinterPass::ModuleDebugInfoPrinterPass(raw_ostream &OS)
: … { … }
PreservedAnalyses ModuleDebugInfoPrinterPass::run(Module &M,
ModuleAnalysisManager &AM) { … }