]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/back/arm.rs
doc/guide-ffi: A few minor typo/language fixes
[rust.git] / src / librustc / back / arm.rs
index e5e8126ace1841087957b8e79b0ac02470b7cbc5..7a7d248a4cbf55db065ee1f1e0aa7ec331af5365 100644 (file)
@@ -9,8 +9,6 @@
 // except according to those terms.
 
 use back::target_strs;
-use driver::config::cfg_os_to_meta_os;
-use metadata::loader::meta_section_name;
 use syntax::abi;
 
 pub fn get_target_strs(target_triple: String, target_os: abi::Os) -> target_strs::t {
@@ -22,9 +20,6 @@ pub fn get_target_strs(target_triple: String, target_os: abi::Os) -> target_strs
     return target_strs::t {
         module_asm: "".to_string(),
 
-        meta_sect_name:
-            meta_section_name(cfg_os_to_meta_os(target_os)).to_string(),
-
         data_layout: match target_os {
           abi::OsMacos => {
             "e-p:32:32:32\
@@ -34,6 +29,14 @@ pub fn get_target_strs(target_triple: String, target_os: abi::Os) -> target_strs
                 -a0:0:64-n32".to_string()
           }
 
+          abi::OsiOS => {
+            "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".to_string()
+          }
+
           abi::OsWin32 => {
             "e-p:32:32:32\
                 -i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64\