aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2023-04-24 22:59:54 -0700
committerFangrui Song <i@maskray.me>2023-04-24 22:59:54 -0700
commit68dd51421f16f1e17cd453cb1730fcca99a6cfb7 (patch)
tree2b9e5b5b040154740bb3f056bf099860e6e0e606 /clang/lib/Frontend/CompilerInvocation.cpp
parentad41558d8b525528fb4284a4f54e79ec70b409a8 (diff)
downloadllvm-68dd51421f16f1e17cd453cb1730fcca99a6cfb7.zip
llvm-68dd51421f16f1e17cd453cb1730fcca99a6cfb7.tar.gz
llvm-68dd51421f16f1e17cd453cb1730fcca99a6cfb7.tar.bz2
[Driver] Simplify handling of -mabi=vec-default -mabi=vec-extabi
And fix a minor issue that -mabi=vec-extabi -mabi=vec-default should not pass "-bplugin_opt:-vec-extabi" to ld.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 34e0e8d..71204de 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -1935,16 +1935,6 @@ bool CompilerInvocation::ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args,
}
}
- if (Arg *A =
- Args.getLastArg(OPT_mabi_EQ_vec_default, OPT_mabi_EQ_vec_extabi)) {
- if (!T.isOSAIX())
- Diags.Report(diag::err_drv_unsupported_opt_for_target)
- << A->getSpelling() << T.str();
-
- const Option &O = A->getOption();
- Opts.EnableAIXExtendedAltivecABI = O.matches(OPT_mabi_EQ_vec_extabi);
- }
-
if (Arg *A = Args.getLastArg(OPT_mabi_EQ_quadword_atomics)) {
if (!T.isOSAIX() || T.isPPC32())
Diags.Report(diag::err_drv_unsupported_opt_for_target)