xref: /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/StripNonLineTableDebugInfo.cpp (revision 06c3fb2749bda94cb5201f81ffdb8fa6c3161b2e)
10b57cec5SDimitry Andric //===- StripNonLineTableDebugInfo.cpp -- Strip parts of Debug Info --------===//
20b57cec5SDimitry Andric //
30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
60b57cec5SDimitry Andric //
70b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
80b57cec5SDimitry Andric 
9e8d8bef9SDimitry Andric #include "llvm/Transforms/Utils/StripNonLineTableDebugInfo.h"
100b57cec5SDimitry Andric #include "llvm/IR/DebugInfo.h"
11*06c3fb27SDimitry Andric 
120b57cec5SDimitry Andric using namespace llvm;
130b57cec5SDimitry Andric 
14e8d8bef9SDimitry Andric PreservedAnalyses
run(Module & M,ModuleAnalysisManager & AM)15e8d8bef9SDimitry Andric StripNonLineTableDebugInfoPass::run(Module &M, ModuleAnalysisManager &AM) {
16e8d8bef9SDimitry Andric   llvm::stripNonLineTableDebugInfo(M);
17*06c3fb27SDimitry Andric   PreservedAnalyses PA;
18*06c3fb27SDimitry Andric   PA.preserveSet<CFGAnalyses>();
19*06c3fb27SDimitry Andric   return PA;
200b57cec5SDimitry Andric }
21