summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2007-07-27 12:58:54 +0000
committerDuncan Sands <baldrick@free.fr>2007-07-27 12:58:54 +0000
commit644f9173582f44b6293c7fadda5dc7e2bd5d5dfc (patch)
tree0f5f70a5ad5be8037ebccc348157059f648cba1a /llvm/lib/Target/PowerPC/PPCISelLowering.cpp
parent14bbb15f07d7910fdac2e19887aac85fec86aafd (diff)
downloadbcm5719-llvm-644f9173582f44b6293c7fadda5dc7e2bd5d5dfc.tar.gz
bcm5719-llvm-644f9173582f44b6293c7fadda5dc7e2bd5d5dfc.zip
Support for trampolines, except for X86 codegen which is
still under discussion. llvm-svn: 40549
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCISelLowering.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index 6c2f3837b23..0ed1112fff2 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -169,7 +169,10 @@ PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM)
// RET must be custom lowered, to meet ABI requirements
setOperationAction(ISD::RET , MVT::Other, Custom);
-
+
+ setOperationAction(ISD::ADJUST_TRAMP, MVT::i32, Expand);
+ setOperationAction(ISD::ADJUST_TRAMP, MVT::i64, Expand);
+
// VASTART needs to be custom lowered to use the VarArgsFrameIndex
setOperationAction(ISD::VASTART , MVT::Other, Custom);
OpenPOWER on IntegriCloud