From 261b33f47cddd54ee41b30019c4d2101dc523e7a Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 16 Feb 2025 11:19:01 -0800 Subject: [PATCH] [SelectionDAG] Remove lowerCallToExternalSymbol MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The last use was removed in: commit 05e6bb40ebfd285cc87f7ce326b7ba76c3c7f870 Author: Roger Ferrer Ibáñez Date: Thu May 30 14:55:32 2024 +0200 --- llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 9 --------- llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h | 3 --- 2 files changed, 12 deletions(-) diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index cac25fd7c1025..78a6e24e5b8d2 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -6281,15 +6281,6 @@ static unsigned FixedPointIntrinsicToOpcode(unsigned Intrinsic) { } } -void SelectionDAGBuilder::lowerCallToExternalSymbol(const CallInst &I, - const char *FunctionName) { - assert(FunctionName && "FunctionName must not be nullptr"); - SDValue Callee = DAG.getExternalSymbol( - FunctionName, - DAG.getTargetLoweringInfo().getPointerTy(DAG.getDataLayout())); - LowerCallTo(I, Callee, I.isTailCall(), I.isMustTailCall()); -} - /// Given a @llvm.call.preallocated.setup, return the corresponding /// preallocated call. static const CallBase *FindPreallocatedCall(const Value *PreallocatedSetup) { diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h index ece48c9bedf72..8496f8ae78ce6 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h @@ -705,9 +705,6 @@ class SelectionDAGBuilder { DIExpression *Expr, const DebugLoc &dl, unsigned DbgSDNodeOrder); - /// Lowers CallInst to an external symbol. - void lowerCallToExternalSymbol(const CallInst &I, const char *FunctionName); - SDValue lowerStartEH(SDValue Chain, const BasicBlock *EHPadBB, MCSymbol *&BeginLabel); SDValue lowerEndEH(SDValue Chain, const InvokeInst *II,