xref: /src/contrib/llvm-project/llvm/lib/Transforms/Utils/StripNonLineTableDebugInfo.cpp (revision 06c3fb2749bda94cb5201f81ffdb8fa6c3161b2e)
1b915e9e0SDimitry Andric //===- StripNonLineTableDebugInfo.cpp -- Strip parts of Debug Info --------===//
2b915e9e0SDimitry Andric //
3e6d15924SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4e6d15924SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
5e6d15924SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6b915e9e0SDimitry Andric //
7b915e9e0SDimitry Andric //===----------------------------------------------------------------------===//
8b915e9e0SDimitry Andric 
9b60736ecSDimitry Andric #include "llvm/Transforms/Utils/StripNonLineTableDebugInfo.h"
10b915e9e0SDimitry Andric #include "llvm/IR/DebugInfo.h"
117fa27ce4SDimitry Andric 
12b915e9e0SDimitry Andric using namespace llvm;
13b915e9e0SDimitry Andric 
14b60736ecSDimitry Andric PreservedAnalyses
run(Module & M,ModuleAnalysisManager & AM)15b60736ecSDimitry Andric StripNonLineTableDebugInfoPass::run(Module &M, ModuleAnalysisManager &AM) {
16b60736ecSDimitry Andric   llvm::stripNonLineTableDebugInfo(M);
177fa27ce4SDimitry Andric   PreservedAnalyses PA;
187fa27ce4SDimitry Andric   PA.preserveSet<CFGAnalyses>();
197fa27ce4SDimitry Andric   return PA;
20b915e9e0SDimitry Andric }
21