From 36b0be1ec1558f88d4f031a1817c3a4c2cba07a6 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Sat, 22 Aug 2026 18:59:22 +0800 Subject: [CodeGen] Match LLVM machine debug stripping --- backend/tools/MIRTool/MIRToolMain.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'backend/tools') diff --git a/backend/tools/MIRTool/MIRToolMain.cpp b/backend/tools/MIRTool/MIRToolMain.cpp index 2885b0f..b635c27 100644 --- a/backend/tools/MIRTool/MIRToolMain.cpp +++ b/backend/tools/MIRTool/MIRToolMain.cpp @@ -330,6 +330,10 @@ void setBackendOption(std::vector &Options, std::st Command.Controls.DetectUnreportedChanges = false; continue; } + if (Argument == "-debugify-and-strip-all-safe" || Argument == "--debugify-and-strip-all-safe") { + Command.Controls.DebugifyAndStripAllSafe = true; + continue; + } if (Argument == "--print-actions") { Command.PrintActions = true; continue; @@ -346,7 +350,6 @@ void setBackendOption(std::vector &Options, std::st bool ParsedCompatibilityOption = false; for (const std::string_view Name : { std::string_view{"-disable-gisel-legality-check"}, - std::string_view{"-debugify-and-strip-all-safe"}, std::string_view{"-mcp-use-is-copy-instr"}, std::string_view{"-riscv-enable-cfi-instr-inserter"}, std::string_view{"-riscv-outliner-regsave"}, -- cgit v1.2.3