mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-06 04:09:04 +00:00
Add support for calls to external symbols
llvm-svn: 24838
This commit is contained in:
parent
745c88ba10
commit
e8dad0dcb9
@ -964,7 +964,8 @@ SDOperand SparcV8DAGToDAGISel::Select(SDOperand Op) {
|
||||
// Emits: (CALL:void (tglobaladdr:i32):$dst)
|
||||
// Pattern complexity = 2 cost = 1
|
||||
SDOperand N1 = N->getOperand(1);
|
||||
if (N1.getOpcode() != ISD::TargetGlobalAddress) goto P47Fail;
|
||||
if (N1.getOpcode() != ISD::TargetGlobalAddress &&
|
||||
N1.getOpcode() != ISD::ExternalSymbol) goto P47Fail;
|
||||
SDOperand InFlag = SDOperand(0, 0);
|
||||
SDOperand Chain = N->getOperand(0);
|
||||
SDOperand Tmp0 = N1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user