Add support for ISD::TRAP to the XCore backend
[oota-llvm.git] / lib / Target / XCore / XCoreISelLowering.cpp
index e24b998ae25b0d3706ad9515bdf5bef7536e5536..e2d2ab7c89886577cd455a9250564aff23e817ef 100644 (file)
@@ -106,6 +106,8 @@ XCoreTargetLowering::XCoreTargetLowering(XCoreTargetMachine &XTM)
   setOperationAction(ISD::ROTL , MVT::i32, Expand);
   setOperationAction(ISD::ROTR , MVT::i32, Expand);
   
+  setOperationAction(ISD::TRAP, MVT::Other, Legal);
+  
   // Expand jump tables for now
   setOperationAction(ISD::BR_JT, MVT::Other, Expand);
   setOperationAction(ISD::JumpTable, MVT::i32, Custom);