summaryrefslogtreecommitdiff
path: root/include/llvm/Instructions.h
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
commit43eaadeea5217995c153078c04b77183d4c8c494 (patch)
tree05bb584d6a07370123c8216bd0aea065103f08d5 /include/llvm/Instructions.h
parent8f9ffbd056172da470bcd3a9f1d5b4c2414fce59 (diff)
downloadllvm-43eaadeea5217995c153078c04b77183d4c8c494.tar.gz
llvm-43eaadeea5217995c153078c04b77183d4c8c494.tar.bz2
llvm-43eaadeea5217995c153078c04b77183d4c8c494.tar.xz
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 'include/llvm/Instructions.h')
-rw-r--r--include/llvm/Instructions.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h
index eab167db14..626dd0ee45 100644
--- a/include/llvm/Instructions.h
+++ b/include/llvm/Instructions.h
@@ -2100,19 +2100,6 @@ public:
Op<-3>() = V;
}
- // setUnconditionalDest - Change the current branch to an unconditional branch
- // targeting the specified block.
- // FIXME: Eliminate this ugly method.
- void setUnconditionalDest(BasicBlock *Dest) {
- Op<-1>() = (Value*)Dest;
- if (isConditional()) { // Convert this to an uncond branch.
- Op<-2>() = 0;
- Op<-3>() = 0;
- NumOperands = 1;
- OperandList = op_begin();
- }
- }
-
unsigned getNumSuccessors() const { return 1+isConditional(); }
BasicBlock *getSuccessor(unsigned i) const {