Sparc backend doesn't support debug info yet, mark the nodes as expand. This fixes a crash on

test/DebugInfo/funccall.ll

llvm-svn: 47709
This commit is contained in:
Chris Lattner 2008-02-28 05:54:25 +00:00
parent 9824ffef0c
commit e2f55f9fc5
1 changed files with 6 additions and 2 deletions

View File

@ -242,11 +242,15 @@ SparcTargetLowering::SparcTargetLowering(TargetMachine &TM)
setOperationAction(ISD::STACKRESTORE , MVT::Other, Expand);
setOperationAction(ISD::DYNAMIC_STACKALLOC, MVT::i32 , Custom);
// No debug info support yet.
setOperationAction(ISD::LOCATION, MVT::Other, Expand);
setOperationAction(ISD::LABEL, MVT::Other, Expand);
setOperationAction(ISD::DECLARE, MVT::Other, Expand);
setStackPointerRegisterToSaveRestore(SP::O6);
if (TM.getSubtarget<SparcSubtarget>().isV9()) {
if (TM.getSubtarget<SparcSubtarget>().isV9())
setOperationAction(ISD::CTPOP, MVT::i32, Legal);
}
computeRegisterProperties();
}