]> git.lizzy.rs Git - rust.git/commitdiff
Clean up conditions for clobbers
authorRicho Healey <richo@psych0tik.net>
Wed, 14 Jan 2015 03:01:37 +0000 (19:01 -0800)
committerRicho Healey <richo@psych0tik.net>
Wed, 14 Jan 2015 03:01:37 +0000 (19:01 -0800)
src/librustc_trans/trans/asm.rs

index 12dfec6c29a8051073323ed0b1075e758e33d753..05abd3ff5577d7b211a0a59a2ded4b493aeccf8f 100644 (file)
@@ -161,11 +161,7 @@ pub fn trans_inline_asm<'blk, 'tcx>(bcx: Block<'blk, 'tcx>, ia: &ast::InlineAsm)
 // Default per-arch clobbers
 // Basically what clang does
 
-#[cfg(any(target_arch = "arm",
-          target_arch = "aarch64",
-          target_arch = "mips",
-          target_arch = "mipsel",
-          target_arch = "powerpc"))]
+#[cfg(not(any(target_arch = "x86", target_arch = "x86_64")))]
 fn get_clobbers() -> String {
     "".to_string()
 }