diff options
author | Zarko Todorovski <zarko@ca.ibm.com> | 2021-06-23 07:14:24 -0400 |
---|---|---|
committer | Zarko Todorovski <zarko@ca.ibm.com> | 2021-06-23 07:40:38 -0400 |
commit | 76c931ae42cf1080199a238446306e8554ebb6de (patch) | |
tree | bd6e86b96ba33e1d3c7c7429d3d7f3dde6cde950 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | ff4b1d379f3f3d2dfd9f9b4fc5715676024b8024 (diff) | |
download | llvm-76c931ae42cf1080199a238446306e8554ebb6de.zip llvm-76c931ae42cf1080199a238446306e8554ebb6de.tar.gz llvm-76c931ae42cf1080199a238446306e8554ebb6de.tar.bz2 |
[AIX][PowerPC] Remove error when specifying mabi=vec-default on AIX
The default Altivec ABI was implemented but the clang error for specifying
its use still remains. Users could get around this but not specifying the
type of Altivec ABI but we need to remove the error.
Reviewed By: jsji
Differential Revision: https://reviews.llvm.org/D102094
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 5bbb954..c1b7b02 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1859,13 +1859,7 @@ bool CompilerInvocation::ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, << A->getSpelling() << T.str(); const Option &O = A->getOption(); - if (O.matches(OPT_mabi_EQ_vec_default)) - Diags.Report(diag::err_aix_default_altivec_abi) - << A->getSpelling() << T.str(); - else { - assert(O.matches(OPT_mabi_EQ_vec_extabi)); - Opts.EnableAIXExtendedAltivecABI = 1; - } + Opts.EnableAIXExtendedAltivecABI = O.matches(OPT_mabi_EQ_vec_extabi); } bool NeedLocTracking = false; |