changeset 61:7f1f0f7e0569

remove createArrayDecl
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Sun, 02 Feb 2014 17:54:49 +0900
parents d4de94500cd9
children fe2728d9537d
files tools/clang/include/clang/Parse/Parser.h tools/clang/lib/Parse/ParseCbC.cpp
diffstat 2 files changed, 0 insertions(+), 23 deletions(-) [+]
line wrap: on
line diff
--- a/tools/clang/include/clang/Parse/Parser.h	Sun Feb 02 17:53:11 2014 +0900
+++ b/tools/clang/include/clang/Parse/Parser.h	Sun Feb 02 17:54:49 2014 +0900
@@ -1712,7 +1712,6 @@
   StmtResult CreateSjForContinuationWithEnv();
   StmtResult CreateAssignmentStmt(IdentifierInfo* LHSII = 0, IdentifierInfo* RHSII = 0, bool LHSisMemberAccess = false,
 				  bool RHShasAmp = false, IdentifierInfo* extraLHSII = 0, IdentifierInfo* extraRHSII = 0);
-  void CreateArrayDecl(ParsingDeclarator &D, SourceLocation Loc, const char* size);
   StmtResult CreateDeclStmt(IdentifierInfo *II = 0, bool isRetCS = false, bool copyType = false, DeclSpec::TST valueType = DeclSpec::TST_int, IdentifierInfo* Name = 0);
   IdentifierInfo* CreateUniqueIdentifierInfo(const char* Name, SourceLocation Loc);
   ParmVarDecl* CreateParam(IdentifierInfo *II = 0, int pointerNum = 0, DeclSpec::TST T = DeclSpec::TST_int);
--- a/tools/clang/lib/Parse/ParseCbC.cpp	Sun Feb 02 17:53:11 2014 +0900
+++ b/tools/clang/lib/Parse/ParseCbC.cpp	Sun Feb 02 17:54:49 2014 +0900
@@ -352,28 +352,6 @@
   return New;
 }
 
-void Parser::CreateArrayDecl(ParsingDeclarator &D, SourceLocation Loc, const char* size){
-  ExprResult ExprRes;
-  ParsedAttributesWithRange attrs(AttrFactory);
-  SmallString<128> SpellingBuffer;
-  SpellingBuffer.resize(strlen(size) + 1);
-  StringRef TokSpelling = StringRef(size, strlen(size));
-  NumericLiteralParser Literal(TokSpelling, Loc, PP);
-  Expr *sizeRes;
-  QualType Ty;
-  unsigned MaxWidth = Actions.Context.getTargetInfo().getIntMaxTWidth();
-  llvm::APInt ResultVal(MaxWidth, 0);
-  Literal.GetIntegerValue(ResultVal);
-  unsigned Width = 0;
-  unsigned IntSize = Actions.Context.getTargetInfo().getIntWidth();
-  Ty = Actions.Context.IntTy;
-  Width = IntSize;
-  ResultVal = ResultVal.trunc(Width);
-  sizeRes = IntegerLiteral::Create(Actions.Context, ResultVal, Ty, Loc);
-  ExprRes = Actions.Owned(sizeRes);
-  D.AddTypeInfo(DeclaratorChunk::getArray(0, false, false,ExprRes.release(),Loc,Loc),attrs,Loc);
-}
-
 StmtResult Parser::CreateSjForContinuationWithEnv(){
   SourceLocation Loc = Tok.getLocation();
   StmtResult IfRes;