mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 00:29:20 +00:00
Regenerate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47509 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
57ef4f46c1
commit
6bfc63bef9
File diff suppressed because it is too large
Load Diff
@ -344,7 +344,7 @@
|
||||
|
||||
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
||||
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::Function *FunctionVal;
|
||||
|
@ -2531,7 +2531,7 @@ ReturnedVal : ResolvedVal {
|
||||
$$->push_back($1);
|
||||
CHECK_FOR_ERROR
|
||||
}
|
||||
| ReturnedVal ',' ConstVal {
|
||||
| ReturnedVal ',' ResolvedVal {
|
||||
($$=$1)->push_back($3);
|
||||
CHECK_FOR_ERROR
|
||||
};
|
||||
@ -2580,28 +2580,7 @@ InstructionList : InstructionList Inst {
|
||||
|
||||
BBTerminatorInst :
|
||||
RET ReturnedVal { // Return with a result...
|
||||
if($2->size() == 1)
|
||||
$$ = 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;
|
||||
}
|
||||
$$ = new ReturnInst(*$2);
|
||||
delete $2;
|
||||
CHECK_FOR_ERROR
|
||||
}
|
||||
@ -3174,6 +3153,7 @@ MemoryInst : MALLOC Types OptCAlign {
|
||||
if (!GetResultInst::isValidOperands(TmpVal, $5))
|
||||
GEN_ERROR("Invalid getresult operands");
|
||||
$$ = new GetResultInst(TmpVal, $5);
|
||||
delete $2;
|
||||
CHECK_FOR_ERROR
|
||||
}
|
||||
| GETELEMENTPTR Types ValueRef IndexList {
|
||||
|
Loading…
Reference in New Issue
Block a user