Mercurial > hg > CbC > CbC_llvm
changeset 136:6cd7e602c98b
Fix compile error to update llvm 5.0.1
author | mir3636 |
---|---|
date | Sat, 17 Feb 2018 11:50:31 +0900 |
parents | 7c836c76d71d |
children | dc788094b8e4 |
files | tools/clang/lib/Parse/ParseCbC.cpp |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/clang/lib/Parse/ParseCbC.cpp Sat Feb 17 10:58:11 2018 +0900 +++ b/tools/clang/lib/Parse/ParseCbC.cpp Sat Feb 17 11:50:31 2018 +0900 @@ -220,7 +220,7 @@ ParsedType CastTy; DeclSpec void_DS(AttrFactory); setTST(&void_DS, DeclSpec::TST_void); - Declarator DeclaratorInfo(void_DS, Declarator::TypeNameContext); + Declarator DeclaratorInfo(void_DS, DeclaratorContext::TypeNameContext); DeclSpec star_DS(AttrFactory); star_DS.Finish(Actions, Actions.getASTContext().getPrintingPolicy()); DeclaratorInfo.ExtendWithDeclSpec(star_DS); @@ -286,7 +286,7 @@ DSp = &DS; setTST(&DS, valueType, Name, TQ); - ParsingDeclarator D(*this, DS, static_cast<Declarator::TheContext>(Declarator::BlockContext)); + ParsingDeclarator D(*this, DS, static_cast<DeclaratorContext>(DeclaratorContext::BlockContext)); D.SetIdentifier(II, Loc); if (isRetCS) { @@ -633,7 +633,7 @@ SourceLocation Loc = Tok.getLocation(); ParsingDeclSpec PDS(*this); setTST(&PDS, DeclSpec::TST___code); - ParsingDeclarator D(*this, PDS, static_cast<Declarator::TheContext>(Declarator::FileContext)); + ParsingDeclarator D(*this, PDS, static_cast<DeclaratorContext>(DeclaratorContext::FileContext)); D.SetIdentifier(csName, Loc); ParseScope PrototypeScope(this,Scope::FunctionPrototypeScope|Scope::DeclScope|Scope::FunctionDeclarationScope); bool IsAmbiguous = false; @@ -692,7 +692,7 @@ IdentifierInfo *structName = CreateIdentifierInfo(__CBC_STRUCT_NAME, Loc); setTST(&envDS, DeclSpec::TST_struct, structName); - Declarator envDInfo(envDS, Declarator::TypeNameContext); + Declarator envDInfo(envDS, DeclaratorContext::TypeNameContext); envDInfo.SetRangeEnd(Loc); DeclSpec starDS(AttrFactory); starDS.Finish(Actions, Policy); @@ -737,7 +737,7 @@ DeclSpec ljDS(AttrFactory); setTST(&ljDS, DeclSpec::TST_struct, structName); - Declarator ljD(ljDS, Declarator::TypeNameContext); + Declarator ljD(ljDS, DeclaratorContext::TypeNameContext); ljD.SetRangeEnd(Loc); DeclSpec starDS2(AttrFactory); starDS2.Finish(Actions, Policy); @@ -820,7 +820,7 @@ SourceLocation Loc = Tok.getLocation(); DeclSpec DS(AttrFactory); setTST(&DS, T); - Declarator ParamDeclarator(DS, Declarator::PrototypeContext); + Declarator ParamDeclarator(DS, DeclaratorContext::PrototypeContext); ParamDeclarator.SetIdentifier(II, Loc); for(int i = 0;i<pointerNum; i++){ DeclSpec pointerDS(AttrFactory);