diff options
author | Jeremy Morse <jeremy.morse@sony.com> | 2025-06-09 19:36:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-09 19:36:34 +0100 |
commit | 0e4b8b8f81c97ef7374c321fd67a804dd17b4532 (patch) | |
tree | 7f20a6ac7323696961b9c94775d5f1a69c9f454e /llvm/lib/IR/BasicBlock.cpp | |
parent | 7f08503a3bf3acdd2a58ac712d5e95682ce583dd (diff) | |
download | llvm-0e4b8b8f81c97ef7374c321fd67a804dd17b4532.zip llvm-0e4b8b8f81c97ef7374c321fd67a804dd17b4532.tar.gz llvm-0e4b8b8f81c97ef7374c321fd67a804dd17b4532.tar.bz2 |
[DebugInfo][RemoveDIs] Rip out the UseNewDbgInfoFormat flag (#143207)
Start removing debug intrinsics support -- starting with the flag that
controls production of their replacement, debug records. This patch
removes the command-line-flag and with it the ability to switch back to
intrinsics. The module / function / block level "IsNewDbgInfoFormat"
flags get hardcoded to true, I'll to incrementally remove things that
depend on those flags.
Diffstat (limited to 'llvm/lib/IR/BasicBlock.cpp')
-rw-r--r-- | llvm/lib/IR/BasicBlock.cpp | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/llvm/lib/IR/BasicBlock.cpp b/llvm/lib/IR/BasicBlock.cpp index 628f0625..ed11ea0 100644 --- a/llvm/lib/IR/BasicBlock.cpp +++ b/llvm/lib/IR/BasicBlock.cpp @@ -31,30 +31,6 @@ using namespace llvm; #define DEBUG_TYPE "ir" STATISTIC(NumInstrRenumberings, "Number of renumberings across all blocks"); -// This cl-opt exists to control whether variable-location information is -// produced using intrinsics, or whether DbgRecords are produced. However, -// it's imminently being phased out, so give it a flag-name that is very -// unlikely to be used anywhere. -// -// If you find yourself needing to use this flag for any period longer than -// five minutes, please revert the patch making this change, and make contact -// in this discourse post, where we can discuss any further transition work -// that might be needed to remove debug intrinsics. -// -// https://discourse.llvm.org/t/psa-ir-output-changing-from-debug-intrinsics-to-debug-records/79578 -LLVM_ABI cl::opt<bool> - UseNewDbgInfoFormat("dont-pass-this-flag-please-experimental-debuginfo", - cl::Hidden, cl::init(true)); - -// This cl-opt collects the --experimental-debuginfo-iterators flag and then -// does nothing with it (because the it gets stored into an otherwise unused -// cl-opt), so that we can disable debug-intrinsic production without -// immediately modifying lots of tests. If your tests break because of this -// change, please see the next comment up. -static cl::opt<bool> DeliberatelyUnseenDbgInfoFlag( - "experimental-debuginfo-iterators", cl::Hidden, - cl::init(true)); - DbgMarker *BasicBlock::createMarker(Instruction *I) { assert(IsNewDbgInfoFormat && "Tried to create a marker in a non new debug-info block!"); @@ -187,7 +163,7 @@ template class llvm::SymbolTableListTraits< BasicBlock::BasicBlock(LLVMContext &C, const Twine &Name, Function *NewParent, BasicBlock *InsertBefore) : Value(Type::getLabelTy(C), Value::BasicBlockVal), - IsNewDbgInfoFormat(UseNewDbgInfoFormat), Parent(nullptr) { + IsNewDbgInfoFormat(true), Parent(nullptr) { if (NewParent) insertInto(NewParent, InsertBefore); |