mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-15 09:33:39 +00:00
remove some ugly hacks that are no longer needed since andrew removed the
varargs munging code git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21742 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3799ed83b4
commit
1f64025d88
@ -46,14 +46,6 @@ static Module *ParserResult;
|
|||||||
|
|
||||||
#define YYERROR_VERBOSE 1
|
#define YYERROR_VERBOSE 1
|
||||||
|
|
||||||
// HACK ALERT: This variable is used to implement the automatic conversion of
|
|
||||||
// variable argument instructions from their old to new forms. When this
|
|
||||||
// compatiblity "Feature" is removed, this should be too.
|
|
||||||
//
|
|
||||||
static BasicBlock *CurBB;
|
|
||||||
static bool ObsoleteVarArgs;
|
|
||||||
|
|
||||||
|
|
||||||
// This contains info used when building the body of a function. It is
|
// This contains info used when building the body of a function. It is
|
||||||
// destroyed when the function is completed.
|
// destroyed when the function is completed.
|
||||||
//
|
//
|
||||||
@ -1706,22 +1698,22 @@ InstructionList : InstructionList Inst {
|
|||||||
$$ = $1;
|
$$ = $1;
|
||||||
}
|
}
|
||||||
| /* empty */ {
|
| /* empty */ {
|
||||||
$$ = CurBB = getBBVal(ValID::create((int)CurFun.NextBBNum++), true);
|
$$ = getBBVal(ValID::create((int)CurFun.NextBBNum++), true);
|
||||||
|
|
||||||
// Make sure to move the basic block to the correct location in the
|
// Make sure to move the basic block to the correct location in the
|
||||||
// function, instead of leaving it inserted wherever it was first
|
// function, instead of leaving it inserted wherever it was first
|
||||||
// referenced.
|
// referenced.
|
||||||
CurFun.CurrentFunction->getBasicBlockList().remove(CurBB);
|
CurFun.CurrentFunction->getBasicBlockList().remove($$);
|
||||||
CurFun.CurrentFunction->getBasicBlockList().push_back(CurBB);
|
CurFun.CurrentFunction->getBasicBlockList().push_back($$);
|
||||||
}
|
}
|
||||||
| LABELSTR {
|
| LABELSTR {
|
||||||
$$ = CurBB = getBBVal(ValID::create($1), true);
|
$$ = getBBVal(ValID::create($1), true);
|
||||||
|
|
||||||
// Make sure to move the basic block to the correct location in the
|
// Make sure to move the basic block to the correct location in the
|
||||||
// function, instead of leaving it inserted wherever it was first
|
// function, instead of leaving it inserted wherever it was first
|
||||||
// referenced.
|
// referenced.
|
||||||
CurFun.CurrentFunction->getBasicBlockList().remove(CurBB);
|
CurFun.CurrentFunction->getBasicBlockList().remove($$);
|
||||||
CurFun.CurrentFunction->getBasicBlockList().push_back(CurBB);
|
CurFun.CurrentFunction->getBasicBlockList().push_back($$);
|
||||||
};
|
};
|
||||||
|
|
||||||
BBTerminatorInst : RET ResolvedVal { // Return with a result...
|
BBTerminatorInst : RET ResolvedVal { // Return with a result...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user