[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
This commit is contained in:
Paul Robinson 2017-03-01 01:01:10 +00:00
parent 1eca59e8b7
commit 18c12d534d
1 changed files with 5 additions and 1 deletions

View File

@ -1582,6 +1582,10 @@ void CompilerInvocation::setLangDefaults(LangOptions &Opts, InputKind IK,
case IK_PreprocessedCXX:
case IK_ObjCXX:
case IK_PreprocessedObjCXX:
// 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: