aboutsummaryrefslogtreecommitdiff
path: root/backend/include/rcc/CodeGen/MachineStripDebug.h
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-22 18:59:22 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-22 18:59:22 +0800
commit36b0be1ec1558f88d4f031a1817c3a4c2cba07a6 (patch)
tree3cf29b19ec7e450bd04dca8d416d68350aa20de2 /backend/include/rcc/CodeGen/MachineStripDebug.h
parent8a4bb6e3b0bffa0ed79b51347b12ee4293b622a7 (diff)
downloadrcc-project-36b0be1ec1558f88d4f031a1817c3a4c2cba07a6.tar.gz
rcc-project-36b0be1ec1558f88d4f031a1817c3a4c2cba07a6.tar.xz
[CodeGen] Match LLVM machine debug stripping
Diffstat (limited to 'backend/include/rcc/CodeGen/MachineStripDebug.h')
-rw-r--r--backend/include/rcc/CodeGen/MachineStripDebug.h16
1 files changed, 16 insertions, 0 deletions
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<bool> stripDebugMachineFunction(MachineFunction &Function);
+
+} // namespace rcc
+
+#endif // RCC_CODEGEN_MACHINESTRIPDEBUG_H