summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/VMCore/InstructionsTest.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-01-07 20:26:51 +0000
committerJay Foad <jay.foad@gmail.com>2011-01-07 20:26:51 +0000
commit814f1bb8e31ea9d582f56a18b6470592f5e9f0cf (patch)
tree90bdeb173ebf57cf6f008b72cf8f277b6a2b1bde /llvm/unittests/VMCore/InstructionsTest.cpp
parent89afb43b1ec7e957876a5aaf37caf8b4c9eb7587 (diff)
downloadbcm5719-llvm-814f1bb8e31ea9d582f56a18b6470592f5e9f0cf.tar.gz
bcm5719-llvm-814f1bb8e31ea9d582f56a18b6470592f5e9f0cf.zip
Remove the "ugly" method BranchInst::setUnconditionalDest().
llvm-svn: 123026
Diffstat (limited to 'llvm/unittests/VMCore/InstructionsTest.cpp')
-rw-r--r--llvm/unittests/VMCore/InstructionsTest.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/llvm/unittests/VMCore/InstructionsTest.cpp b/llvm/unittests/VMCore/InstructionsTest.cpp
index c9fe2a13166..1d1127d863b 100644
--- a/llvm/unittests/VMCore/InstructionsTest.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud