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 PreservedAnalyses PA; 21 PA.preserveSet<CFGAnalyses>(); 22 return PA; 23 } 24