From c465588cc955bc9990c664fbd0e0c3ca245c54e8 Mon Sep 17 00:00:00 2001 From: Lucas Date: Wed, 15 Jan 2025 13:44:38 -0300 Subject: [PATCH] Remove unused function --- llvm/lib/Target/SBF/SBFISelLowering.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/llvm/lib/Target/SBF/SBFISelLowering.cpp b/llvm/lib/Target/SBF/SBFISelLowering.cpp index f0b8e2cf31215c..1adbdccf0a4714 100644 --- a/llvm/lib/Target/SBF/SBFISelLowering.cpp +++ b/llvm/lib/Target/SBF/SBFISelLowering.cpp @@ -39,18 +39,6 @@ static void fail(const SDLoc &DL, SelectionDAG &DAG, const Twine &Msg) { DiagnosticInfoUnsupported(MF.getFunction(), Msg, DL.getDebugLoc())); } -static void fail(const SDLoc &DL, SelectionDAG &DAG, const char *Msg, - SDValue Val) { - MachineFunction &MF = DAG.getMachineFunction(); - std::string Str; - raw_string_ostream OS(Str); - OS << Msg; - Val->print(OS); - OS.flush(); - DAG.getContext()->diagnose( - DiagnosticInfoUnsupported(MF.getFunction(), Str, DL.getDebugLoc())); -} - SBFTargetLowering::SBFTargetLowering(const TargetMachine &TM, const SBFSubtarget &STI) : TargetLowering(TM), Subtarget(&STI) {