diff options
author | Nate Begeman <natebegeman@mac.com> | 2008-08-11 17:36:31 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2008-08-11 17:36:31 +0000 |
commit | f69d13b60af2a8b43acf453fa0f9dcc8e01b3203 (patch) | |
tree | f0f1a666fbbc1da9156421fbe39d84a44bc06c18 /llvm/lib/Target/PowerPC/PPCISelLowering.cpp | |
parent | fb3043d62708f182b7387924456c2282d374a9ef (diff) | |
download | bcm5719-llvm-f69d13b60af2a8b43acf453fa0f9dcc8e01b3203.tar.gz bcm5719-llvm-f69d13b60af2a8b43acf453fa0f9dcc8e01b3203.zip |
Implement ISD::TRAP support on PPC
llvm-svn: 54644
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index fcf235ccd11..2dec8d61b5b 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -183,9 +183,12 @@ PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM) setOperationAction(ISD::ConstantPool, MVT::i64, Custom); setOperationAction(ISD::JumpTable, MVT::i64, Custom); - // RET must be custom lowered, to meet ABI requirements + // RET must be custom lowered, to meet ABI requirements. setOperationAction(ISD::RET , MVT::Other, Custom); + // TRAP is legal. + setOperationAction(ISD::TRAP, MVT::Other, Legal); + // VASTART needs to be custom lowered to use the VarArgsFrameIndex setOperationAction(ISD::VASTART , MVT::Other, Custom); |