]> granicus.if.org Git - clang/commitdiff
Reapply the patch of r260376.
authorAndrey Turetskiy <andrey.turetskiy@gmail.com>
Wed, 10 Feb 2016 12:56:10 +0000 (12:56 +0000)
committerAndrey Turetskiy <andrey.turetskiy@gmail.com>
Wed, 10 Feb 2016 12:56:10 +0000 (12:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@260379 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp

index 5501ceb702181bf129f6f9355ca0e5da3562b4c6..6fd1505ea62cd573d74ff112745ddb18f68c9e24 100644 (file)
@@ -3807,8 +3807,6 @@ public:
       : WindowsX86_32TargetInfo(Triple) {
     LongDoubleWidth = LongDoubleAlign = 64;
     LongDoubleFormat = &llvm::APFloat::IEEEdouble;
-    DataLayoutString =
-        "e-m:e-p:32:32-i64:32-f64:32-f128:32-n8:16:32-a:0:32-S32";
   }
   void getTargetDefines(const LangOptions &Opts,
                         MacroBuilder &Builder) const override {
@@ -3913,6 +3911,8 @@ public:
   MCUX86_32TargetInfo(const llvm::Triple &Triple) : X86_32TargetInfo(Triple) {
     LongDoubleWidth = 64;
     LongDoubleFormat = &llvm::APFloat::IEEEdouble;
+    DataLayoutString =
+        "e-m:e-p:32:32-i64:32-f64:32-f128:32-n8:16:32-a:0:32-S32";
     UserLabelPrefix = "";
     WIntType = UnsignedInt;
   }