summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 05e5196e32d..b8e05b523ef 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -2751,6 +2751,16 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK,
<< A->getAsString(Args) << A->getValue();
}
}
+ // The PS4 requires version 6 of the clang ABI.
+ if (T.isPS4()) {
+ // Issue a warning if another version of the ABI was requested.
+ if (Args.getLastArg(OPT_fclang_abi_compat_EQ) &&
+ Opts.getClangABICompat() != LangOptions::ClangABI::Ver6) {
+ Diags.Report(diag::warn_drv_ignored_clang_abi_version)
+ << 6;
+ }
+ Opts.setClangABICompat(LangOptions::ClangABI::Ver6);
+ }
}
static bool isStrictlyPreprocessorAction(frontend::ActionKind Action) {
OpenPOWER on IntegriCloud