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/CodeGen/MIRPrinter.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/CodeGen/MIRPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MIRPrinter.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp index b7b8f66..34ac079 100644 --- a/llvm/lib/CodeGen/MIRPrinter.cpp +++ b/llvm/lib/CodeGen/MIRPrinter.cpp @@ -70,8 +70,6 @@ static cl::opt<bool> SimplifyMIR( static cl::opt<bool> PrintLocations("mir-debug-loc", cl::Hidden, cl::init(true), cl::desc("Print MIR debug-locations")); -extern cl::opt<bool> UseNewDbgInfoFormat; - namespace { /// This structure describes how to print out stack object references. @@ -967,8 +965,7 @@ void MIRFormatter::printIRValue(raw_ostream &OS, const Value &V, } void llvm::printMIR(raw_ostream &OS, const Module &M) { - ScopedDbgInfoFormatSetter FormatSetter(const_cast<Module &>(M), - UseNewDbgInfoFormat); + ScopedDbgInfoFormatSetter FormatSetter(const_cast<Module &>(M), true); yaml::Output Out(OS); Out << const_cast<Module &>(M); @@ -979,6 +976,6 @@ void llvm::printMIR(raw_ostream &OS, const MachineModuleInfo &MMI, // RemoveDIs: as there's no textual form for DbgRecords yet, print debug-info // in dbg.value format. ScopedDbgInfoFormatSetter FormatSetter( - const_cast<Function &>(MF.getFunction()), UseNewDbgInfoFormat); + const_cast<Function &>(MF.getFunction()), true); printMF(OS, MMI, MF); } |