LLVM: set target data layout for arm-unknown-linux triplet
authorKarel Gardas <karel.gardas@centrum.cz>
Sat, 9 Jul 2011 15:30:02 +0000 (17:30 +0200)
committerManuel M T Chakravarty <chak@cse.unsw.edu.au>
Wed, 10 Aug 2011 12:03:41 +0000 (22:03 +1000)
compiler/llvmGen/LlvmCodeGen/Ppr.hs

index 40f7ce0..cd8a168 100644 (file)
@@ -51,7 +51,14 @@ moduleLayout =
     $+$ text "target triple = \"x86_64-linux-gnu\""
 #endif
 
-#else /* Not x86 */
+#elif defined (arm_TARGET_ARCH)
+
+#if linux_TARGET_OS
+    text "target datalayout = \"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f16:16:16-f32:32:32-f64:64:64-v64:64:64-v128:64:128-a0:0:64-n8:16:32\""
+    $+$ text "target triple = \"arm-unknown-linux\""
+#endif
+
+#else
     -- FIX: Other targets
     empty
 #endif