From 0e4b8b8f81c97ef7374c321fd67a804dd17b4532 Mon Sep 17 00:00:00 2001 From: Jeremy Morse Date: Mon, 9 Jun 2025 19:36:34 +0100 Subject: [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. --- llvm/lib/LTO/LTO.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'llvm/lib/LTO/LTO.cpp') diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp index ba120a0..df39507 100644 --- a/llvm/lib/LTO/LTO.cpp +++ b/llvm/lib/LTO/LTO.cpp @@ -70,8 +70,6 @@ using namespace object; #define DEBUG_TYPE "lto" -LLVM_ABI extern cl::opt UseNewDbgInfoFormat; - static cl::opt DumpThinCGSCCs("dump-thin-cg-sccs", cl::init(false), cl::Hidden, cl::desc("Dump the SCCs in the ThinLTO index's callgraph")); @@ -602,7 +600,7 @@ LTO::RegularLTOState::RegularLTOState(unsigned ParallelCodeGenParallelismLevel, : ParallelCodeGenParallelismLevel(ParallelCodeGenParallelismLevel), Ctx(Conf), CombinedModule(std::make_unique("ld-temp.o", Ctx)), Mover(std::make_unique(*CombinedModule)) { - CombinedModule->IsNewDbgInfoFormat = UseNewDbgInfoFormat; + CombinedModule->IsNewDbgInfoFormat = true; } LTO::ThinLTOState::ThinLTOState(ThinBackend BackendParam) -- cgit v1.1