forked from OSchip/llvm-project
parent
7851765b0a
commit
25d797b7ca
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -1,9 +1,7 @@
|
||||||
/* A Bison parser, made by GNU Bison 2.3. */
|
/* A Bison parser, made by GNU Bison 2.1. */
|
||||||
|
|
||||||
/* Skeleton interface for Bison's Yacc-like parsers in C
|
/* 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, 2003, 2004, 2005, 2006
|
|
||||||
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
|
||||||
|
@ -20,18 +18,10 @@
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||||
Boston, MA 02110-1301, USA. */
|
Boston, MA 02110-1301, USA. */
|
||||||
|
|
||||||
/* As a special exception, you may create a larger work that contains
|
/* As a special exception, when this file is copied by Bison into a
|
||||||
part or all of the Bison parser skeleton and distribute that work
|
Bison output file, you may use that output file without restriction.
|
||||||
under terms of your choice, so long as that work isn't itself a
|
This special exception was added by the Free Software Foundation
|
||||||
parser generator using the skeleton or a modified version thereof
|
in version 1.24 of Bison. */
|
||||||
as a parser skeleton. Alternatively, if you modify or redistribute
|
|
||||||
the parser skeleton itself, you may (at your option) remove this
|
|
||||||
special exception, which will cause the skeleton and the resulting
|
|
||||||
Bison output files to be licensed under the GNU General Public
|
|
||||||
License without this special exception.
|
|
||||||
|
|
||||||
This special exception was added by the Free Software Foundation in
|
|
||||||
version 2.2 of Bison. */
|
|
||||||
|
|
||||||
/* Tokens. */
|
/* Tokens. */
|
||||||
#ifndef YYTOKENTYPE
|
#ifndef YYTOKENTYPE
|
||||||
|
@ -312,10 +302,9 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
|
||||||
typedef union YYSTYPE
|
#line 955 "/proj/llvm/llvm-2/lib/AsmParser/llvmAsmParser.y"
|
||||||
#line 954 "/home/asl/proj/llvm/src/lib/AsmParser/llvmAsmParser.y"
|
typedef union YYSTYPE {
|
||||||
{
|
|
||||||
llvm::Module *ModuleVal;
|
llvm::Module *ModuleVal;
|
||||||
llvm::Function *FunctionVal;
|
llvm::Function *FunctionVal;
|
||||||
llvm::BasicBlock *BasicBlockVal;
|
llvm::BasicBlock *BasicBlockVal;
|
||||||
|
@ -360,10 +349,9 @@ typedef union YYSTYPE
|
||||||
llvm::Instruction::OtherOps OtherOpVal;
|
llvm::Instruction::OtherOps OtherOpVal;
|
||||||
llvm::ICmpInst::Predicate IPredicate;
|
llvm::ICmpInst::Predicate IPredicate;
|
||||||
llvm::FCmpInst::Predicate FPredicate;
|
llvm::FCmpInst::Predicate FPredicate;
|
||||||
}
|
} YYSTYPE;
|
||||||
/* Line 1489 of yacc.c. */
|
/* Line 1447 of yacc.c. */
|
||||||
#line 366 "llvmAsmParser.tab.h"
|
#line 355 "llvmAsmParser.tab.h"
|
||||||
YYSTYPE;
|
|
||||||
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
||||||
# define YYSTYPE_IS_DECLARED 1
|
# define YYSTYPE_IS_DECLARED 1
|
||||||
# define YYSTYPE_IS_TRIVIAL 1
|
# define YYSTYPE_IS_TRIVIAL 1
|
||||||
|
@ -371,3 +359,5 @@ typedef union YYSTYPE
|
||||||
|
|
||||||
extern YYSTYPE llvmAsmlval;
|
extern YYSTYPE llvmAsmlval;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -482,7 +482,7 @@ static Value *getVal(const Type *Ty, const ValID &ID) {
|
||||||
//
|
//
|
||||||
switch (ID.Type) {
|
switch (ID.Type) {
|
||||||
case ValID::GlobalName:
|
case ValID::GlobalName:
|
||||||
case ValID::GlobalID:
|
case ValID::GlobalID: {
|
||||||
const PointerType *PTy = dyn_cast<PointerType>(Ty);
|
const PointerType *PTy = dyn_cast<PointerType>(Ty);
|
||||||
if (!PTy) {
|
if (!PTy) {
|
||||||
GenerateError("Invalid type for reference to global" );
|
GenerateError("Invalid type for reference to global" );
|
||||||
|
@ -494,6 +494,7 @@ static Value *getVal(const Type *Ty, const ValID &ID) {
|
||||||
else
|
else
|
||||||
V = new GlobalVariable(ElTy, false, GlobalValue::ExternalLinkage);
|
V = new GlobalVariable(ElTy, false, GlobalValue::ExternalLinkage);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
V = new Argument(Ty);
|
V = new Argument(Ty);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue