Sparc backend doesn't support debug info yet, mark the nodes as expand. This fixes...
authorChris Lattner <sabre@nondot.org>
Thu, 28 Feb 2008 05:54:25 +0000 (05:54 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 28 Feb 2008 05:54:25 +0000 (05:54 +0000)
test/DebugInfo/funccall.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47709 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Sparc/SparcISelDAGToDAG.cpp

index 6e59631a81daf6d33944bcdf0aedcbe6bfcf9a20..95f4e0867307624b8325e6412b8990079755f0dd 100644 (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();
 }