diff options
author | Chris Lattner <sabre@nondot.org> | 2005-05-06 19:49:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-05-06 19:49:51 +0000 |
commit | 1f64025d8807ca14bebac6b2e577b5e26b74a279 (patch) | |
tree | 8fc25cdb0d67ad38e896525c6b419568e22ffe74 | |
parent | 3799ed83b4cb80695a81294da6a7d18cf0884f5e (diff) |
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
-rw-r--r-- | lib/AsmParser/llvmAsmParser.y | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y index b6a6e96fce..d99680fdb8 100644 --- a/lib/AsmParser/llvmAsmParser.y +++ b/lib/AsmParser/llvmAsmParser.y @@ -46,14 +46,6 @@ static Module *ParserResult; #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 // destroyed when the function is completed. // @@ -1706,22 +1698,22 @@ InstructionList : InstructionList Inst { $$ = $1; } | /* 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 // function, instead of leaving it inserted wherever it was first // referenced. - CurFun.CurrentFunction->getBasicBlockList().remove(CurBB); - CurFun.CurrentFunction->getBasicBlockList().push_back(CurBB); + CurFun.CurrentFunction->getBasicBlockList().remove($$); + CurFun.CurrentFunction->getBasicBlockList().push_back($$); } | 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 // function, instead of leaving it inserted wherever it was first // referenced. - CurFun.CurrentFunction->getBasicBlockList().remove(CurBB); - CurFun.CurrentFunction->getBasicBlockList().push_back(CurBB); + CurFun.CurrentFunction->getBasicBlockList().remove($$); + CurFun.CurrentFunction->getBasicBlockList().push_back($$); }; BBTerminatorInst : RET ResolvedVal { // Return with a result... |