Regenerate

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47509 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2008-02-23 00:38:56 +00:00
parent 57ef4f46c1
commit 6bfc63bef9
3 changed files with 447 additions and 487 deletions

File diff suppressed because it is too large Load Diff

View File

@ -344,7 +344,7 @@
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE typedef union YYSTYPE
#line 953 "/Volumes/MacOS9/gcc/llvm/lib/AsmParser/llvmAsmParser.y" #line 953 "/Volumes/Nanpura/mrv/llvm/lib/AsmParser/llvmAsmParser.y"
{ {
llvm::Module *ModuleVal; llvm::Module *ModuleVal;
llvm::Function *FunctionVal; llvm::Function *FunctionVal;

View File

@ -2531,7 +2531,7 @@ ReturnedVal : ResolvedVal {
$$->push_back($1); $$->push_back($1);
CHECK_FOR_ERROR CHECK_FOR_ERROR
} }
| ReturnedVal ',' ConstVal { | ReturnedVal ',' ResolvedVal {
($$=$1)->push_back($3); ($$=$1)->push_back($3);
CHECK_FOR_ERROR CHECK_FOR_ERROR
}; };
@ -2580,28 +2580,7 @@ InstructionList : InstructionList Inst {
BBTerminatorInst : BBTerminatorInst :
RET ReturnedVal { // Return with a result... RET ReturnedVal { // Return with a result...
if($2->size() == 1) $$ = new ReturnInst(*$2);
$$ = new ReturnInst($2->back());
else {
std::vector<const Type*> Elements;
std::vector<Constant*> Vals;
for (std::vector<Value *>::iterator I = $2->begin(),
E = $2->end(); I != E; ++I) {
Value *V = *I;
Constant *C = cast<Constant>(V);
Elements.push_back(V->getType());
Vals.push_back(C);
}
const StructType *STy = StructType::get(Elements);
PATypeHolder *PTy =
new PATypeHolder(HandleUpRefs(StructType::get(Elements)));
Constant *CS = ConstantStruct::get(STy, Vals); // *$2);
$$ = new ReturnInst(CS);
delete PTy;
}
delete $2; delete $2;
CHECK_FOR_ERROR CHECK_FOR_ERROR
} }
@ -3174,6 +3153,7 @@ MemoryInst : MALLOC Types OptCAlign {
if (!GetResultInst::isValidOperands(TmpVal, $5)) if (!GetResultInst::isValidOperands(TmpVal, $5))
GEN_ERROR("Invalid getresult operands"); GEN_ERROR("Invalid getresult operands");
$$ = new GetResultInst(TmpVal, $5); $$ = new GetResultInst(TmpVal, $5);
delete $2;
CHECK_FOR_ERROR CHECK_FOR_ERROR
} }
| GETELEMENTPTR Types ValueRef IndexList { | GETELEMENTPTR Types ValueRef IndexList {