ELF does not imply GNU/Linux. Do not assume GNU conventions just because we
[oota-llvm.git] / lib / Target / X86 / X86ISelDAGToDAG.cpp
index 5186482a0dd561b69c30aaf2cbb4aaf0c760cedf..7161854de0a6b9e203361dd2fc856f0900c444db 100644 (file)
@@ -593,7 +593,7 @@ bool X86DAGToDAGISel::MatchLoadInAddress(LoadSDNode *N, X86ISelAddressMode &AM){
   // For more information see http://people.redhat.com/drepper/tls.pdf
   if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Address))
     if (C->getSExtValue() == 0 && AM.Segment.getNode() == 0 &&
-        Subtarget->isTargetELF())
+        Subtarget->isTargetLinux())
       switch (N->getPointerInfo().getAddrSpace()) {
       case 256:
         AM.Segment = CurDAG->getRegister(X86::GS, MVT::i16);