Skip to content

Commit 153dd19

Browse files
[SelectionDAG] Remove lowerCallToExternalSymbol (llvm#127408)
The last use was removed in: commit 05e6bb4 Author: Roger Ferrer Ibáñez <[email protected]> Date: Thu May 30 14:55:32 2024 +0200
1 parent 86d8222 commit 153dd19

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6281,15 +6281,6 @@ static unsigned FixedPointIntrinsicToOpcode(unsigned Intrinsic) {
62816281
}
62826282
}
62836283

6284-
void SelectionDAGBuilder::lowerCallToExternalSymbol(const CallInst &I,
6285-
const char *FunctionName) {
6286-
assert(FunctionName && "FunctionName must not be nullptr");
6287-
SDValue Callee = DAG.getExternalSymbol(
6288-
FunctionName,
6289-
DAG.getTargetLoweringInfo().getPointerTy(DAG.getDataLayout()));
6290-
LowerCallTo(I, Callee, I.isTailCall(), I.isMustTailCall());
6291-
}
6292-
62936284
/// Given a @llvm.call.preallocated.setup, return the corresponding
62946285
/// preallocated call.
62956286
static const CallBase *FindPreallocatedCall(const Value *PreallocatedSetup) {

llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -705,9 +705,6 @@ class SelectionDAGBuilder {
705705
DIExpression *Expr, const DebugLoc &dl,
706706
unsigned DbgSDNodeOrder);
707707

708-
/// Lowers CallInst to an external symbol.
709-
void lowerCallToExternalSymbol(const CallInst &I, const char *FunctionName);
710-
711708
SDValue lowerStartEH(SDValue Chain, const BasicBlock *EHPadBB,
712709
MCSymbol *&BeginLabel);
713710
SDValue lowerEndEH(SDValue Chain, const InvokeInst *II,

0 commit comments

Comments
 (0)