xref: /llvm-project/llvm/lib/Transforms/Utils/StripNonLineTableDebugInfo.cpp (revision 15977742d3ebba05a33a8eac3201ebba9c9f10e3)
1 //===- StripNonLineTableDebugInfo.cpp -- Strip parts of Debug Info --------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #include "llvm/Transforms/Utils/StripNonLineTableDebugInfo.h"
10 #include "llvm/IR/DebugInfo.h"
11 #include "llvm/InitializePasses.h"
12 #include "llvm/Pass.h"
13 #include "llvm/Transforms/Utils.h"
14 
15 using namespace llvm;
16 
17 PreservedAnalyses
18 StripNonLineTableDebugInfoPass::run(Module &M, ModuleAnalysisManager &AM) {
19   llvm::stripNonLineTableDebugInfo(M);
20   return PreservedAnalyses::all();
21 }
22