bolt/deps/llvm-18.1.8/llvm/lib/Transforms/Utils/StripNonLineTableDebugInfo.cpp

21 lines
692 B
C++
Raw Normal View History

2025-02-14 19:21:04 +01:00
//===- StripNonLineTableDebugInfo.cpp -- Strip parts of Debug Info --------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#include "llvm/Transforms/Utils/StripNonLineTableDebugInfo.h"
#include "llvm/IR/DebugInfo.h"
using namespace llvm;
PreservedAnalyses
StripNonLineTableDebugInfoPass::run(Module &M, ModuleAnalysisManager &AM) {
llvm::stripNonLineTableDebugInfo(M);
PreservedAnalyses PA;
PA.preserveSet<CFGAnalyses>();
return PA;
}