[llvm-commits] CVS: llvm/lib/Target/SparcV8/SparcV8ISelDAGToDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Dec 18 15:07:23 PST 2005
Changes in directory llvm/lib/Target/SparcV8:
SparcV8ISelDAGToDAG.cpp updated: 1.23 -> 1.24
---
Log message:
Add support for calls to external symbols
---
Diffs of the changes: (+2 -1)
SparcV8ISelDAGToDAG.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/lib/Target/SparcV8/SparcV8ISelDAGToDAG.cpp
diff -u llvm/lib/Target/SparcV8/SparcV8ISelDAGToDAG.cpp:1.23 llvm/lib/Target/SparcV8/SparcV8ISelDAGToDAG.cpp:1.24
--- llvm/lib/Target/SparcV8/SparcV8ISelDAGToDAG.cpp:1.23 Sun Dec 18 17:00:27 2005
+++ llvm/lib/Target/SparcV8/SparcV8ISelDAGToDAG.cpp Sun Dec 18 17:07:11 2005
@@ -964,7 +964,8 @@
// 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;
More information about the llvm-commits
mailing list