aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorjasonliu <jasonliu.development@gmail.com>2020-05-19 14:56:56 +0000
committerjasonliu <jasonliu.development@gmail.com>2020-05-19 15:00:48 +0000
commit7f5d91d3ffedf89823f36a5eba5ec586bc885545 (patch)
treea7d9d0ab0e37d01d360387c186578e2c4c993ce7 /clang/lib/Frontend/CompilerInvocation.cpp
parent268fa40daa151d3b4bff1df12b62e5dae94685d7 (diff)
downloadllvm-7f5d91d3ffedf89823f36a5eba5ec586bc885545.zip
llvm-7f5d91d3ffedf89823f36a5eba5ec586bc885545.tar.gz
llvm-7f5d91d3ffedf89823f36a5eba5ec586bc885545.tar.bz2
[clang][AIX] Implement ABIInfo and TargetCodeGenInfo for AIX
Summary: Created AIXABIInfo and AIXTargetCodeGenInfo for AIX ABI. Reviewed By: Xiangling_L, ZarkoCA Differential Revision: https://reviews.llvm.org/D79035
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index a30cb2a..94ba0dd 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -1298,6 +1298,12 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK,
if (Arg *A =
Args.getLastArg(OPT_fpcc_struct_return, OPT_freg_struct_return,
OPT_maix_struct_return, OPT_msvr4_struct_return)) {
+ // TODO: We might want to consider enabling these options on AIX in the
+ // future.
+ if (T.isOSAIX())
+ Diags.Report(diag::err_drv_unsupported_opt_for_target)
+ << A->getSpelling() << T.str();
+
const Option &O = A->getOption();
if (O.matches(OPT_fpcc_struct_return) ||
O.matches(OPT_maix_struct_return)) {