summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-02-28 05:54:25 +0000
committerChris Lattner <sabre@nondot.org>2008-02-28 05:54:25 +0000
commite2f55f9fc5c5aa76d212d4c9a2831bb552055c44 (patch)
treec48a214d7db9543ff5af829ef7b1a7cbe5261a42 /llvm/lib
parent9824ffef0c6047da5214c9d76a28abd185b8f71e (diff)
downloadbcm5719-llvm-e2f55f9fc5c5aa76d212d4c9a2831bb552055c44.tar.gz
bcm5719-llvm-e2f55f9fc5c5aa76d212d4c9a2831bb552055c44.zip
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
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp b/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp
index 6e59631a81d..95f4e086730 100644
--- a/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp
+++ b/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp
@@ -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();
}
OpenPOWER on IntegriCloud