Skip to content
Snippets Groups Projects
Commit 910ca79b authored by Toma Tabacu's avatar Toma Tabacu
Browse files

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.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@231363 91177308-0d34-0410-b5e6-96231b3b80d8
parent c2cd0245
No related branches found
No related tags found
No related merge requests found
...@@ -25,11 +25,11 @@ def target_feature : Separate<["-"], "target-feature">, ...@@ -25,11 +25,11 @@ def target_feature : Separate<["-"], "target-feature">,
HelpText<"Target specific attributes">; HelpText<"Target specific attributes">;
def triple : Separate<["-"], "triple">, def triple : Separate<["-"], "triple">,
HelpText<"Specify target triple (e.g. i686-apple-darwin9)">; 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">, def target_linker_version : Separate<["-"], "target-linker-version">,
HelpText<"Target linker version">; HelpText<"Target linker version">;
def triple_EQ : Joined<["-"], "triple=">, Alias<triple>; def triple_EQ : Joined<["-"], "triple=">, Alias<triple>;
......
// 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'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment