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/include/rcc/CodeGen/MachineStripDebug.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 backend/include/rcc/CodeGen/MachineStripDebug.h (limited to 'backend/include/rcc/CodeGen/MachineStripDebug.h') diff --git a/backend/include/rcc/CodeGen/MachineStripDebug.h b/backend/include/rcc/CodeGen/MachineStripDebug.h new file mode 100644 index 0000000..eb89155 --- /dev/null +++ b/backend/include/rcc/CodeGen/MachineStripDebug.h @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-3.0-or-later + +#ifndef RCC_CODEGEN_MACHINESTRIPDEBUG_H +#define RCC_CODEGEN_MACHINESTRIPDEBUG_H + +#include "rcc/Support/Error.h" + +namespace rcc { + +class MachineFunction; + +[[nodiscard]] Expected stripDebugMachineFunction(MachineFunction &Function); + +} // namespace rcc + +#endif // RCC_CODEGEN_MACHINESTRIPDEBUG_H -- cgit v1.2.3