[PATCH] D102094: [AIX][PowerPC] Remove error when specifying mabi=vec-default on AIX
Zarko Todorovski via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon May 10 08:58:09 PDT 2021
ZarkoCA updated this revision to Diff 344078.
ZarkoCA edited the summary of this revision.
ZarkoCA added a comment.
- Simplify option logic
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102094/new/
https://reviews.llvm.org/D102094
Files:
clang/lib/Frontend/CompilerInvocation.cpp
Index: clang/lib/Frontend/CompilerInvocation.cpp
===================================================================
--- clang/lib/Frontend/CompilerInvocation.cpp
+++ clang/lib/Frontend/CompilerInvocation.cpp
@@ -1851,12 +1851,7 @@
<< A->getSpelling() << T.str();
const Option &O = A->getOption();
- if (O.matches(OPT_mabi_EQ_vec_extabi))
- Opts.EnableAIXExtendedAltivecABI = 1;
- else if (O.matches(OPT_mabi_EQ_vec_default))
- Opts.EnableAIXExtendedAltivecABI = 0;
- else
- Opts.EnableAIXExtendedAltivecABI = 0;
+ Opts.EnableAIXExtendedAltivecABI = O.matches(OPT_mabi_EQ_vec_extabi);
}
bool NeedLocTracking = false;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102094.344078.patch
Type: text/x-patch
Size: 670 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210510/1cb00596/attachment.bin>
More information about the cfe-commits
mailing list