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*fe013be4SDimitry 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*fe013be4SDimitry Andric   PreservedAnalyses PA;
18*fe013be4SDimitry Andric   PA.preserveSet<CFGAnalyses>();
19*fe013be4SDimitry Andric   return PA;
200b57cec5SDimitry Andric }
21