mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Remove the "ugly" method BranchInst::setUnconditionalDest().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123026 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -99,23 +99,6 @@ TEST(InstructionsTest, BranchInst) {
|
||||
|
||||
EXPECT_EQ(b, b1->op_end());
|
||||
|
||||
// shrink it
|
||||
b1->setUnconditionalDest(bb1);
|
||||
|
||||
// check num operands
|
||||
EXPECT_EQ(b1->getNumOperands(), 1U);
|
||||
|
||||
User::const_op_iterator c(b1->op_begin());
|
||||
EXPECT_NE(c, b1->op_end());
|
||||
|
||||
// check THEN
|
||||
EXPECT_EQ(*c, bb1);
|
||||
EXPECT_EQ(b1->getOperand(0), bb1);
|
||||
EXPECT_EQ(b1->getSuccessor(0), bb1);
|
||||
++c;
|
||||
|
||||
EXPECT_EQ(c, b1->op_end());
|
||||
|
||||
// clean up
|
||||
delete b0;
|
||||
delete b1;
|
||||
|
Reference in New Issue
Block a user