diff options
author | Paul Robinson <paul.robinson@sony.com> | 2017-03-01 01:01:10 +0000 |
---|---|---|
committer | Paul Robinson <paul.robinson@sony.com> | 2017-03-01 01:01:10 +0000 |
commit | 18c12d534d74b84c6cfafa4ca1483f086a661e51 (patch) | |
tree | 8bf358090fd92203dd5c7979a05fa953c7929557 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 1eca59e8b7c21a788129f79cea7224304b937114 (diff) | |
download | bcm5719-llvm-18c12d534d74b84c6cfafa4ca1483f086a661e51.tar.gz bcm5719-llvm-18c12d534d74b84c6cfafa4ca1483f086a661e51.zip |
[PS4] Set our default dialect to C++11. NFC for other targets.
Reapplies r296209 now that r296549 has fixed what really seems to be
the last problematic test.
llvm-svn: 296554
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 59db36d508c..33ff55211d1 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1582,7 +1582,11 @@ void CompilerInvocation::setLangDefaults(LangOptions &Opts, InputKind IK, case IK_PreprocessedCXX: case IK_ObjCXX: case IK_PreprocessedObjCXX: - LangStd = LangStandard::lang_gnucxx98; + // The PS4 uses C++11 as the default C++ standard. + if (T.isPS4()) + LangStd = LangStandard::lang_gnucxx11; + else + LangStd = LangStandard::lang_gnucxx98; break; case IK_RenderScript: LangStd = LangStandard::lang_c99; |