<div dir="ltr">Nice!<div><br></div><div>-- Sean Silva</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 28, 2017 at 5:01 PM, Paul Robinson via cfe-commits <span dir="ltr"><<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: probinson<br>
Date: Tue Feb 28 19:01:10 2017<br>
New Revision: 296554<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=296554&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project?rev=296554&view=rev</a><br>
Log:<br>
[PS4] Set our default dialect to C++11. NFC for other targets.<br>
Reapplies r296209 now that r296549 has fixed what really seems to be<br>
the last problematic test.<br>
<br>
Modified:<br>
cfe/trunk/lib/Frontend/<wbr>CompilerInvocation.cpp<br>
<br>
Modified: cfe/trunk/lib/Frontend/<wbr>CompilerInvocation.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/CompilerInvocation.cpp?rev=296554&r1=296553&r2=296554&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project/cfe/trunk/lib/<wbr>Frontend/CompilerInvocation.<wbr>cpp?rev=296554&r1=296553&r2=<wbr>296554&view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- cfe/trunk/lib/Frontend/<wbr>CompilerInvocation.cpp (original)<br>
+++ cfe/trunk/lib/Frontend/<wbr>CompilerInvocation.cpp Tue Feb 28 19:01:10 2017<br>
@@ -1582,7 +1582,11 @@ void CompilerInvocation::<wbr>setLangDefaults<br>
case IK_PreprocessedCXX:<br>
case IK_ObjCXX:<br>
case IK_PreprocessedObjCXX:<br>
- LangStd = LangStandard::lang_gnucxx98;<br>
+ // The PS4 uses C++11 as the default C++ standard.<br>
+ if (T.isPS4())<br>
+ LangStd = LangStandard::lang_gnucxx11;<br>
+ else<br>
+ LangStd = LangStandard::lang_gnucxx98;<br>
break;<br>
case IK_RenderScript:<br>
LangStd = LangStandard::lang_c99;<br>
<br>
<br>
______________________________<wbr>_________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br></div>