Mercurial > hg > CbC > CbC_llvm
changeset 216:ca14b6d29a6f
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 14 Jul 2021 19:37:42 +0900 |
parents | 8dc2792ec4a4 |
children | ed684adca46d |
files | clang/lib/Parse/ParseDecl.cpp |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/clang/lib/Parse/ParseDecl.cpp Tue Jul 13 16:06:13 2021 +0900 +++ b/clang/lib/Parse/ParseDecl.cpp Wed Jul 14 19:37:42 2021 +0900 @@ -3822,6 +3822,15 @@ isInvalid = DS.SetTypeSpecType(DeclSpec::TST_void, Loc, PrevSpec, DiagID, Policy); break; +#ifndef noCbC + case tok::kw___code: { + LangOptions* LOP; + LOP = const_cast<LangOptions*>(&getLangOpts()); + LOP->HasCodeSegment = 1; + isInvalid = DS.SetTypeSpecType(DeclSpec::TST___code, Loc, PrevSpec, DiagID, Policy); + break; + } +#endif case tok::kw_char: isInvalid = DS.SetTypeSpecType(DeclSpec::TST_char, Loc, PrevSpec, DiagID, Policy);