comparison include/llvm/IR/BasicBlock.h @ 83:60c9769439b8 LLVM3.7

LLVM 3.7
author Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
date Wed, 18 Feb 2015 14:55:36 +0900
parents 54457678186b
children afa8332a0e37
comparison
equal deleted inserted replaced
78:af83660cff7b 83:60c9769439b8
80 Function *Parent; 80 Function *Parent;
81 81
82 void setParent(Function *parent); 82 void setParent(Function *parent);
83 friend class SymbolTableListTraits<BasicBlock, Function>; 83 friend class SymbolTableListTraits<BasicBlock, Function>;
84 84
85 BasicBlock(const BasicBlock &) LLVM_DELETED_FUNCTION; 85 BasicBlock(const BasicBlock &) = delete;
86 void operator=(const BasicBlock &) LLVM_DELETED_FUNCTION; 86 void operator=(const BasicBlock &) = delete;
87 87
88 /// \brief Constructor. 88 /// \brief Constructor.
89 /// 89 ///
90 /// If the function parameter is specified, the basic block is automatically 90 /// If the function parameter is specified, the basic block is automatically
91 /// inserted at either the end of the function (if InsertBefore is null), or 91 /// inserted at either the end of the function (if InsertBefore is null), or
206 BasicBlock *getUniquePredecessor(); 206 BasicBlock *getUniquePredecessor();
207 const BasicBlock *getUniquePredecessor() const { 207 const BasicBlock *getUniquePredecessor() const {
208 return const_cast<BasicBlock*>(this)->getUniquePredecessor(); 208 return const_cast<BasicBlock*>(this)->getUniquePredecessor();
209 } 209 }
210 210
211 /// Return the successor of this block if it has a unique successor.
212 /// Otherwise return a null pointer. This method is analogous to
213 /// getUniquePredeccessor above.
214 BasicBlock *getUniqueSuccessor();
215 const BasicBlock *getUniqueSuccessor() const {
216 return const_cast<BasicBlock*>(this)->getUniqueSuccessor();
217 }
218
211 //===--------------------------------------------------------------------===// 219 //===--------------------------------------------------------------------===//
212 /// Instruction iterator methods 220 /// Instruction iterator methods
213 /// 221 ///
214 inline iterator begin() { return InstList.begin(); } 222 inline iterator begin() { return InstList.begin(); }
215 inline const_iterator begin() const { return InstList.begin(); } 223 inline const_iterator begin() const { return InstList.begin(); }