Mercurial > hg > CbC > CbC_llvm
changeset 72:9943a04bf572
remove unnecessary codes
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 18 Feb 2014 17:35:06 +0900 |
parents | 108a2a7b01ee |
children | a3c5e73c970d |
files | tools/clang/lib/Parse/ParseCbC.cpp |
diffstat | 1 files changed, 1 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/clang/lib/Parse/ParseCbC.cpp Tue Feb 18 15:28:20 2014 +0900 +++ b/tools/clang/lib/Parse/ParseCbC.cpp Tue Feb 18 17:35:06 2014 +0900 @@ -521,25 +521,12 @@ Actions.ActOnTagStartDefinition(getCurScope(), TagDecl); SmallVector<Decl *, 32> FieldDecls; - const char *PrevSpec = 0; - unsigned DiagID = 0; - FieldDecls.push_back(Create__CbC_envBody(TagDecl, DeclSpec::TST_void, Loc, __CBC_STRUCT_POINTER_NAME)); FieldDecls.push_back(Create__CbC_envBody(TagDecl, DeclSpec::TST_int, Loc, __CBC_STRUCT_ENV_NAME)); Actions.ActOnFields(getCurScope(),Loc, TagDecl, FieldDecls,Loc, Loc,attrs.getList()); StructScope.Exit(); - Actions.ActOnTagFinishDefinition(getCurScope(), TagDecl,Loc); - bool Result = SDS.SetTypeSpecType(TagType, Loc,Loc.isValid() ? Loc : Loc, PrevSpec, DiagID, TagOrTempResult.get(), Owned); - - if (Result){ - Diag(Loc, DiagID) << PrevSpec; - } - - SDS.Finish(Diags,PP); - Decl *TheDecl = Actions.ParsedFreeStandingDeclSpec(getCurScope(), AS, SDS); - SDS.complete(TheDecl); - Actions.ConvertDeclToDeclGroup(TheDecl); + Actions.ActOnTagFinishDefinition(getCurScope(), TagDecl, Loc); Actions.CurScope = SavedScope; Actions.CurContext = SavedContext;