diff options
author | Paul Robinson <paul.robinson@sony.com> | 2016-12-14 02:06:11 +0000 |
---|---|---|
committer | Paul Robinson <paul.robinson@sony.com> | 2016-12-14 02:06:11 +0000 |
commit | 41a2508e5979bbd5a3dad687f2e94bc0e38a7fa4 (patch) | |
tree | 0e9d456a9aa330563a1dd11f07954c27dca3e037 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | fd1184efb510860e4e319f72718ac05ffe335522 (diff) | |
download | bcm5719-llvm-41a2508e5979bbd5a3dad687f2e94bc0e38a7fa4.tar.gz bcm5719-llvm-41a2508e5979bbd5a3dad687f2e94bc0e38a7fa4.zip |
[PS4] Undo dialect tweak for Objective-C.
In r267772, we had set the PS4's default dialect for both C and
Objective-C to gnu99. Make that change only for C; we don't really
support Objective-C/C++ so there's no point fiddling the dialect.
llvm-svn: 289625
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index e243cf2e356..989feef6c51 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1558,14 +1558,16 @@ void CompilerInvocation::setLangDefaults(LangOptions &Opts, InputKind IK, case IK_Asm: case IK_C: case IK_PreprocessedC: - case IK_ObjC: - case IK_PreprocessedObjC: // The PS4 uses C99 as the default C standard. if (T.isPS4()) LangStd = LangStandard::lang_gnu99; else LangStd = LangStandard::lang_gnu11; break; + case IK_ObjC: + case IK_PreprocessedObjC: + LangStd = LangStandard::lang_gnu11; + break; case IK_CXX: case IK_PreprocessedCXX: case IK_ObjCXX: |