From d62f022c92fcc3ebe2269273628943a0089683fd Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Thu, 13 Aug 2026 06:19:30 +0800 Subject: [CodeGen] Align MIR parser and printer ownership --- backend/include/rcc/MIR/MIPrinter.h | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 backend/include/rcc/MIR/MIPrinter.h (limited to 'backend/include/rcc/MIR/MIPrinter.h') diff --git a/backend/include/rcc/MIR/MIPrinter.h b/backend/include/rcc/MIR/MIPrinter.h deleted file mode 100644 index 663859e..0000000 --- a/backend/include/rcc/MIR/MIPrinter.h +++ /dev/null @@ -1,35 +0,0 @@ -// SPDX-License-Identifier: GPL-3.0-or-later - -#ifndef RCC_MIR_MIPRINTER_H -#define RCC_MIR_MIPRINTER_H - -#include "rcc/MIR/MIParser.h" -#include "rcc/Support/Error.h" - -#include - -namespace rcc { - -class MachineFunction; -class TargetDescription; - -namespace mir { - -enum class MIPrintMode : unsigned char { - Complete, - Readable, -}; - -struct MIPrinterOptions final { - MIPrintMode Mode = MIPrintMode::Complete; -}; - -[[nodiscard]] Expected printMachineFunctionBody(const MachineFunction &Function, - const TargetDescription &Target, - const MIParserContext &Context = {}, - MIPrinterOptions Options = {}); - -} // namespace mir -} // namespace rcc - -#endif // RCC_MIR_MIPRINTER_H -- cgit v1.2.3