diff options
author | Jay Foad <jay.foad@gmail.com> | 2011-01-07 20:26:51 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2011-01-07 20:26:51 +0000 |
commit | 43eaadeea5217995c153078c04b77183d4c8c494 (patch) | |
tree | 05bb584d6a07370123c8216bd0aea065103f08d5 /unittests/VMCore/InstructionsTest.cpp | |
parent | 8f9ffbd056172da470bcd3a9f1d5b4c2414fce59 (diff) |
Remove the "ugly" method BranchInst::setUnconditionalDest().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123026 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/VMCore/InstructionsTest.cpp')
-rw-r--r-- | unittests/VMCore/InstructionsTest.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/unittests/VMCore/InstructionsTest.cpp b/unittests/VMCore/InstructionsTest.cpp index c9fe2a1316..1d1127d863 100644 --- a/unittests/VMCore/InstructionsTest.cpp +++ b/unittests/VMCore/InstructionsTest.cpp @@ -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; |