r231363 - Recommit "[IAS] Teach -cc1as about the 'target-abi' option."

Toma Tabacu toma.tabacu at imgtec.com
Thu Mar 5 05:39:16 PST 2015


Author: tomatabacu
Date: Thu Mar  5 07:39:14 2015
New Revision: 231363

URL: http://llvm.org/viewvc/llvm-project?rev=231363&view=rev
Log:
Recommit "[IAS] Teach -cc1as about the 'target-abi' option."

Added a REQUIRES for the Mips target.
Also, switched to using plain CHECKs, at the suggestion of Eric Christopher.

Added:
    cfe/trunk/test/Driver/target-abi-cc1as.s
Modified:
    cfe/trunk/include/clang/Driver/CC1Options.td

Modified: cfe/trunk/include/clang/Driver/CC1Options.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/CC1Options.td?rev=231363&r1=231362&r2=231363&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/CC1Options.td (original)
+++ cfe/trunk/include/clang/Driver/CC1Options.td Thu Mar  5 07:39:14 2015
@@ -25,11 +25,11 @@ def target_feature : Separate<["-"], "ta
   HelpText<"Target specific attributes">;
 def triple : Separate<["-"], "triple">,
   HelpText<"Specify target triple (e.g. i686-apple-darwin9)">;
+def target_abi : Separate<["-"], "target-abi">,
+  HelpText<"Target a particular ABI type">;
 
 }
 
-def target_abi : Separate<["-"], "target-abi">,
-  HelpText<"Target a particular ABI type">;
 def target_linker_version : Separate<["-"], "target-linker-version">,
   HelpText<"Target linker version">;
 def triple_EQ : Joined<["-"], "triple=">, Alias<triple>;

Added: cfe/trunk/test/Driver/target-abi-cc1as.s
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/target-abi-cc1as.s?rev=231363&view=auto
==============================================================================
--- cfe/trunk/test/Driver/target-abi-cc1as.s (added)
+++ cfe/trunk/test/Driver/target-abi-cc1as.s Thu Mar  5 07:39:14 2015
@@ -0,0 +1,6 @@
+// Check if -cc1as knows about the 'target-abi' argument.
+// REQUIRES: mips-registered-target
+
+// RUN: %clang -cc1as -triple mips--linux-gnu -filetype obj -target-cpu mips32 -target-abi o32 %s 2>&1 | \
+// RUN:   FileCheck %s
+// CHECK-NOT: clang -cc1as: error: unknown argument: '-target-abi'





More information about the cfe-commits mailing list