From fe013be447cd855ccaf6094a1d06aea570450629 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 2 Sep 2023 23:17:18 +0200 Subject: Merge llvm-project main llvmorg-17-init-19304-gd0b54bb50e51 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-17-init-19304-gd0b54bb50e51, the last commit before the upstream release/17.x branch was created. PR: 273753 MFC after: 1 month (cherry picked from commit 06c3fb2749bda94cb5201f81ffdb8fa6c3161b2e) --- .../llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp | 38 ---------------------- 1 file changed, 38 deletions(-) (limited to 'contrib/llvm-project/llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp') diff --git a/contrib/llvm-project/llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp b/contrib/llvm-project/llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp index 756f92e1aac4..919f8f5c01d6 100644 --- a/contrib/llvm-project/llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp +++ b/contrib/llvm-project/llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp @@ -25,39 +25,6 @@ #include "llvm/Support/raw_ostream.h" using namespace llvm; -namespace { -class ModuleDebugInfoLegacyPrinter : public ModulePass { - DebugInfoFinder Finder; - -public: - static char ID; // Pass identification, replacement for typeid - ModuleDebugInfoLegacyPrinter() : ModulePass(ID) { - initializeModuleDebugInfoLegacyPrinterPass( - *PassRegistry::getPassRegistry()); - } - - bool runOnModule(Module &M) override; - - void getAnalysisUsage(AnalysisUsage &AU) const override { - AU.setPreservesAll(); - } - void print(raw_ostream &O, const Module *M) const override; -}; -} - -char ModuleDebugInfoLegacyPrinter::ID = 0; -INITIALIZE_PASS(ModuleDebugInfoLegacyPrinter, "module-debuginfo", - "Decodes module-level debug info", false, true) - -ModulePass *llvm::createModuleDebugInfoPrinterPass() { - return new ModuleDebugInfoLegacyPrinter(); -} - -bool ModuleDebugInfoLegacyPrinter::runOnModule(Module &M) { - Finder.processModule(M); - return false; -} - static void printFile(raw_ostream &O, StringRef Filename, StringRef Directory, unsigned Line = 0) { if (Filename.empty()) @@ -132,11 +99,6 @@ static void printModuleDebugInfo(raw_ostream &O, const Module *M, } } -void ModuleDebugInfoLegacyPrinter::print(raw_ostream &O, - const Module *M) const { - printModuleDebugInfo(O, M, Finder); -} - ModuleDebugInfoPrinterPass::ModuleDebugInfoPrinterPass(raw_ostream &OS) : OS(OS) {} -- cgit v1.2.3