You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
2.6 KiB
32 lines
2.6 KiB
diff -u -r ../ghc-8.0.1/compiler/llvmGen/LlvmCodeGen/Ppr.hs ./compiler/llvmGen/LlvmCodeGen/Ppr.hs
|
|
--- ../ghc-8.0.1/compiler/llvmGen/LlvmCodeGen/Ppr.hs 2016-05-16 13:08:53.000000000 -0400
|
|
+++ ./compiler/llvmGen/LlvmCodeGen/Ppr.hs 2016-06-23 17:54:27.073877144 -0400
|
|
@@ -44,12 +44,18 @@
|
|
Platform { platformArch = ArchX86, platformOS = OSLinux } ->
|
|
text "target datalayout = \"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32\""
|
|
$+$ text "target triple = \"i386-pc-linux-gnu\""
|
|
+ Platform { platformArch = ArchX86, platformOS = OSAndroid } ->
|
|
+ text "target datalayout = \"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32\""
|
|
+ $+$ text "target triple = \"i386-pc-linux-android\""
|
|
Platform { platformArch = ArchX86_64, platformOS = OSDarwin } ->
|
|
text "target datalayout = \"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64\""
|
|
$+$ text "target triple = \"x86_64-apple-darwin10.0.0\""
|
|
Platform { platformArch = ArchX86_64, platformOS = OSLinux } ->
|
|
text "target datalayout = \"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64\""
|
|
$+$ text "target triple = \"x86_64-linux-gnu\""
|
|
+ Platform { platformArch = ArchX86_64, platformOS = OSAndroid } ->
|
|
+ text "target datalayout = \"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64\""
|
|
+ $+$ text "target triple = \"x86_64-linux-android\""
|
|
Platform { platformArch = ArchARM {}, platformOS = OSLinux } ->
|
|
text "target datalayout = \"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:64:128-a0:0:64-n32\""
|
|
$+$ text "target triple = \"armv6-unknown-linux-gnueabihf\""
|
|
@@ -71,6 +77,9 @@
|
|
Platform { platformArch = ArchARM64, platformOS = OSLinux } ->
|
|
text "target datalayout = \"e-m:e-i64:64-i128:128-n32:64-S128\""
|
|
$+$ text "target triple = \"aarch64-unknown-linux-gnu\""
|
|
+ Platform { platformArch = ArchARM64, platformOS = OSAndroid } ->
|
|
+ text "target datalayout = \"e-m:e-i64:64-i128:128-n32:64-S128\""
|
|
+ $+$ text "target triple = \"aarch64-unknown-linux-android\""
|
|
_ ->
|
|
if platformIsCrossCompiling platform
|
|
then panic "LlvmCodeGen.Ppr: Cross compiling without valid target info."
|
|
|