From a6bbf33cbfb2d5c9b5e0c729db7dd83599c8ee2d Mon Sep 17 00:00:00 2001 From: Andrew Lenharth Date: Wed, 11 Oct 2006 04:29:42 +0000 Subject: Jimptables working again on alpha. As a bonus, use the GOT node instead of the AlphaISD::GOT for internal stuff. llvm-svn: 30873 --- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp') diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index d6b07a0f1b5..b7262d653f3 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -534,6 +534,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) { case ISD::SRCVALUE: case ISD::STRING: case ISD::CONDCODE: + case ISD::GLOBAL_OFFSET_TABLE: // Primitives must all be legal. assert(TLI.isOperationLegal(Node->getValueType(0), Node->getValueType(0)) && "This must be legal!"); @@ -558,17 +559,6 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) { #endif assert(0 && "Do not know how to legalize this operator!"); abort(); - case ISD::JumpTableRelocBase: - switch (TLI.getOperationAction(Node->getOpcode(), Node->getValueType(0))) { - case TargetLowering::Custom: - Tmp1 = TLI.LowerOperation(Op, DAG); - if (Tmp1.Val) Result = Tmp1; - break; - default: - Result = LegalizeOp(Node->getOperand(0)); - break; - } - break; case ISD::GlobalAddress: case ISD::ExternalSymbol: case ISD::ConstantPool: -- cgit v1.2.3