Rename getEntryNode -> getEntryBlock()
[oota-llvm.git] / include / llvm / CodeGen / MachineBasicBlock.h
index dfa8e0d183ce3d8a400a274cbaf32c1a9ce3cc16..96628ef09852f327151b61c065501162fa0ab63e 100644 (file)
@@ -15,20 +15,15 @@ template <typename T> struct ilist_traits;
 class MachineBasicBlock {
   std::vector<MachineInstr*> Insts;
   MachineBasicBlock *Prev, *Next;
-  BasicBlock *BB;
+  const BasicBlock *BB;
 public:
-  MachineBasicBlock(BasicBlock *bb = 0) : Prev(0), Next(0), BB(bb) {}
+  MachineBasicBlock(const BasicBlock *bb = 0) : Prev(0), Next(0), BB(bb) {}
   ~MachineBasicBlock() {}
   
-  // get - This deprecated static method returns the MachineBasicBlock object
-  // for the specified BasicBlock.
-  //
-  static MachineBasicBlock& get(const BasicBlock *BB);
-
   /// getBasicBlock - Return the LLVM basic block that this instance
   /// corresponded to originally.
   ///
-  BasicBlock *getBasicBlock() const { return BB; }
+  const BasicBlock *getBasicBlock() const { return BB; }
   
   typedef std::vector<MachineInstr*>::iterator                iterator;
   typedef std::vector<MachineInstr*>::const_iterator    const_iterator;