Move lengthy conditional down 1 level per review comment.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40878 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/X86/X86Subtarget.h b/lib/Target/X86/X86Subtarget.h
index 6240dc2..772f143 100644
--- a/lib/Target/X86/X86Subtarget.h
+++ b/lib/Target/X86/X86Subtarget.h
@@ -143,6 +143,11 @@
                                          TargetType == isCygwin); }
   bool isTargetCygwin() const { return TargetType == isCygwin; }
 
+  std::string getDataLayout() const { return
+    is64Bit() ? std::string("e-p:64:64-f64:32:64-i64:32:64-f80:128:128") :
+    isTargetDarwin() ? std::string("e-p:32:32-f64:32:64-i64:32:64-f80:128:128") :
+    std::string("e-p:32:32-f64:32:64-i64:32:64-f80:32:32"); }
+
   bool isPICStyleSet() const { return PICStyle != PICStyle::None; }
   bool isPICStyleGOT() const { return PICStyle == PICStyle::GOT; }
   bool isPICStyleStub() const { return PICStyle == PICStyle::Stub; }