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 12 using namespace llvm; 13 14 PreservedAnalyses 15 StripNonLineTableDebugInfoPass::run(Module &M, ModuleAnalysisManager &AM) { 16 llvm::stripNonLineTableDebugInfo(M); 17 PreservedAnalyses PA; 18 PA.preserveSet<CFGAnalyses>(); 19 return PA; 20 } 21