From 6889b82a5c9ecc6bd178760c66653d7af0121162 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Fri, 28 Aug 2026 14:25:42 +0800 Subject: [CodeGen] Separate assembly emission ownership --- backend/lib/AsmPrinter/TargetMCInstLowering.cpp | 35 ------------------------- 1 file changed, 35 deletions(-) (limited to 'backend/lib/AsmPrinter/TargetMCInstLowering.cpp') diff --git a/backend/lib/AsmPrinter/TargetMCInstLowering.cpp b/backend/lib/AsmPrinter/TargetMCInstLowering.cpp index c171034..898ca2e 100644 --- a/backend/lib/AsmPrinter/TargetMCInstLowering.cpp +++ b/backend/lib/AsmPrinter/TargetMCInstLowering.cpp @@ -11,39 +11,4 @@ Expected TargetMCInstLowering::emitTerminalInstruction(const MachineInstr "target does not support this terminal emission instruction"); } -Expected TargetMCInstLowering::emitFileHeader(MachineMCContext &, mc::MCStreamer &) const { - return {}; -} - -Expected TargetMCInstLowering::emitFileTrailer(MachineMCContext &, mc::MCStreamer &) const { - return {}; -} - -Expected TargetMCInstLowering::emitGenericConstant(const GenericConstantData &, std::uint64_t, - MachineMCContext &, - mc::MCStreamer &) const { - return makeUnexpected(ErrorCode::Unsupported, - "target does not support assembly emission for generic constants"); -} - -Expected TargetMCInstLowering::emitGlobalInitializer(const GlobalInitializer &, - MachineMCContext &, - mc::MCStreamer &) const { - return makeUnexpected(ErrorCode::Unsupported, - "target does not support assembly emission for global initializers"); -} - -Expected TargetMCInstLowering::emitTargetConstant(const TargetConstant &, MachineMCContext &, - mc::MCStreamer &) const { - return makeUnexpected(ErrorCode::Unsupported, - "target does not support assembly emission for this target constant"); -} - -Expected TargetMCInstLowering::emitTargetJumpTable(const MachineFunction &, - const MachineJumpTableEntry &, - MachineMCContext &, - mc::MCStreamer &) const { - return makeUnexpected(ErrorCode::Unsupported, "target does not support this jump-table encoding"); -} - } // namespace rcc -- cgit v1.2.3