mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-18 10:24:45 +00:00
Back out mods to llvmAsmParser, incorrectly committed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46545 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -342,7 +342,7 @@
|
|||||||
|
|
||||||
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
||||||
typedef union YYSTYPE
|
typedef union YYSTYPE
|
||||||
#line 947 "/Users/scottm/play/llvm-trunk/lib/AsmParser/llvmAsmParser.y"
|
#line 947 "/Users/sabre/llvm/lib/AsmParser/llvmAsmParser.y"
|
||||||
{
|
{
|
||||||
llvm::Module *ModuleVal;
|
llvm::Module *ModuleVal;
|
||||||
llvm::Function *FunctionVal;
|
llvm::Function *FunctionVal;
|
||||||
@@ -389,7 +389,7 @@ typedef union YYSTYPE
|
|||||||
llvm::ICmpInst::Predicate IPredicate;
|
llvm::ICmpInst::Predicate IPredicate;
|
||||||
llvm::FCmpInst::Predicate FPredicate;
|
llvm::FCmpInst::Predicate FPredicate;
|
||||||
}
|
}
|
||||||
/* Line 1489 of yacc.c. */
|
/* Line 1529 of yacc.c. */
|
||||||
#line 394 "llvmAsmParser.tab.h"
|
#line 394 "llvmAsmParser.tab.h"
|
||||||
YYSTYPE;
|
YYSTYPE;
|
||||||
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
||||||
|
@@ -2675,15 +2675,8 @@ BBTerminatorInst : RET ResolvedVal { // Return with a result...
|
|||||||
|
|
||||||
if (Ty->isVarArg()) {
|
if (Ty->isVarArg()) {
|
||||||
if (I == E)
|
if (I == E)
|
||||||
for (; ArgI != ArgE; ++ArgI, ++index) {
|
for (; ArgI != ArgE; ++ArgI)
|
||||||
Args.push_back(ArgI->Val); // push the remaining varargs
|
Args.push_back(ArgI->Val); // push the remaining varargs
|
||||||
if (ArgI->Attrs != ParamAttr::None) {
|
|
||||||
ParamAttrsWithIndex PAWI;
|
|
||||||
PAWI.index = index;
|
|
||||||
PAWI.attrs = ArgI->Attrs;
|
|
||||||
Attrs.push_back(PAWI);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else if (I != E || ArgI != ArgE)
|
} else if (I != E || ArgI != ArgE)
|
||||||
GEN_ERROR("Invalid number of parameters detected");
|
GEN_ERROR("Invalid number of parameters detected");
|
||||||
}
|
}
|
||||||
@@ -3013,15 +3006,8 @@ InstVal : ArithmeticOps Types ValueRef ',' ValueRef {
|
|||||||
}
|
}
|
||||||
if (Ty->isVarArg()) {
|
if (Ty->isVarArg()) {
|
||||||
if (I == E)
|
if (I == E)
|
||||||
for (; ArgI != ArgE; ++ArgI, ++index) {
|
for (; ArgI != ArgE; ++ArgI)
|
||||||
Args.push_back(ArgI->Val); // push the remaining varargs
|
Args.push_back(ArgI->Val); // push the remaining varargs
|
||||||
if (ArgI->Attrs != ParamAttr::None) {
|
|
||||||
ParamAttrsWithIndex PAWI;
|
|
||||||
PAWI.index = index;
|
|
||||||
PAWI.attrs = ArgI->Attrs;
|
|
||||||
Attrs.push_back(PAWI);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else if (I != E || ArgI != ArgE)
|
} else if (I != E || ArgI != ArgE)
|
||||||
GEN_ERROR("Invalid number of parameters detected");
|
GEN_ERROR("Invalid number of parameters detected");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user