================
@@ -3630,10 +3631,17 @@ SDValue SITargetLowering::LowerCall(CallLoweringInfo
&CLI,
std::vector<SDValue> Ops;
Ops.push_back(Chain);
+ bool AddTargetGlobalAddr = true;
+ // Try to find the callee in the current module.
+ if (isa<ExternalSymbolSDNode>(Callee)) {
+ Callee = DAG.getSymbolFunctionGlobalAddress(Callee);
+ AddTargetGlobalAddr = false;
+ }
----------------
yxsamliu wrote:
backend changes separated to https://github.com/llvm/llvm-project/pull/74741
https://github.com/llvm/llvm-project/pull/71978
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits