OSDN Git Service

Allow the lowering of ISD::GLOBAL_OFFSET_TABLE.
authorLauro Ramos Venancio <lauro.venancio@gmail.com>
Fri, 20 Apr 2007 23:02:39 +0000 (23:02 +0000)
committerLauro Ramos Venancio <lauro.venancio@gmail.com>
Fri, 20 Apr 2007 23:02:39 +0000 (23:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36290 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

index 42e7e22..d121fce 100644 (file)
@@ -628,7 +628,6 @@ 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!");
@@ -653,6 +652,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
 #endif
     assert(0 && "Do not know how to legalize this operator!");
     abort();
+  case ISD::GLOBAL_OFFSET_TABLE:
   case ISD::GlobalAddress:
   case ISD::GlobalTLSAddress:
   case ISD::ExternalSymbol: