Fix this error:

llvm[2]: Compiling llvmAsmParser.cpp for Debug build
/usr/home/jeffc/llvm/lib/AsmParser/llvmAsmParser.y: In function 'int llvmAsmparse()':
/usr/home/jeffc/llvm/lib/AsmParser/llvmAsmParser.y:1846: error: expected `;' before '}' token


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33425 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jeff Cohen 2007-01-21 19:19:31 +00:00
parent 5c4db8af71
commit 361c3efd9a
4 changed files with 1357 additions and 1580 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
/* A Bison parser, made by GNU Bison 2.1. */ /* A Bison parser, made from /usr/home/jeffc/llvm/lib/AsmParser/llvmAsmParser.y, by GNU bison 1.75. */
/* Skeleton parser for Yacc-like parsing with Bison, /* Skeleton parser for Yacc-like parsing with Bison,
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -15,14 +15,17 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02110-1301, USA. */ Boston, MA 02111-1307, USA. */
/* As a special exception, when this file is copied by Bison into a /* As a special exception, when this file is copied by Bison into a
Bison output file, you may use that output file without restriction. Bison output file, you may use that output file without restriction.
This special exception was added by the Free Software Foundation This special exception was added by the Free Software Foundation
in version 1.24 of Bison. */ in version 1.24 of Bison. */
#ifndef BISON_LLVMASMPARSER_TAB_H
# define BISON_LLVMASMPARSER_TAB_H
/* Tokens. */ /* Tokens. */
#ifndef YYTOKENTYPE #ifndef YYTOKENTYPE
# define YYTOKENTYPE # define YYTOKENTYPE
@ -161,7 +164,6 @@
HIDDEN = 387 HIDDEN = 387
}; };
#endif #endif
/* Tokens. */
#define ESINT64VAL 258 #define ESINT64VAL 258
#define EUINT64VAL 259 #define EUINT64VAL 259
#define SINTVAL 260 #define SINTVAL 260
@ -296,9 +298,9 @@
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) #ifndef YYSTYPE
#line 883 "/proj/llvm/llvm-4/lib/AsmParser/llvmAsmParser.y" #line 883 "/usr/home/jeffc/llvm/lib/AsmParser/llvmAsmParser.y"
typedef union YYSTYPE { typedef union {
llvm::Module *ModuleVal; llvm::Module *ModuleVal;
llvm::Function *FunctionVal; llvm::Function *FunctionVal;
llvm::BasicBlock *BasicBlockVal; llvm::BasicBlock *BasicBlockVal;
@ -343,15 +345,14 @@ typedef union YYSTYPE {
llvm::Module::Endianness Endianness; llvm::Module::Endianness Endianness;
llvm::ICmpInst::Predicate IPredicate; llvm::ICmpInst::Predicate IPredicate;
llvm::FCmpInst::Predicate FPredicate; llvm::FCmpInst::Predicate FPredicate;
} YYSTYPE; } yystype;
/* Line 1447 of yacc.c. */ /* Line 1237 of /usr/local/share/bison/yacc.c. */
#line 349 "llvmAsmParser.tab.h" #line 351 "llvmAsmParser.tab.h"
# define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE yystype
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1
#endif #endif
extern YYSTYPE llvmAsmlval; extern YYSTYPE llvmAsmlval;
#endif /* not BISON_LLVMASMPARSER_TAB_H */

View File

@ -1843,7 +1843,7 @@ DefinitionList
; ;
Definition Definition
: DEFINE { CurFun.isDeclare = false } Function { : DEFINE { CurFun.isDeclare = false; } Function {
CurFun.FunctionDone(); CurFun.FunctionDone();
CHECK_FOR_ERROR CHECK_FOR_ERROR
} }

View File

@ -1843,7 +1843,7 @@ DefinitionList
; ;
Definition Definition
: DEFINE { CurFun.isDeclare = false } Function { : DEFINE { CurFun.isDeclare = false; } Function {
CurFun.FunctionDone(); CurFun.FunctionDone();
CHECK_FOR_ERROR CHECK_FOR_ERROR
} }