ART: API changes

- Moved AppendMIR to BasicBlock
- Moved PrependMIR to BasicBlock
- Moved InsertMIRAfter to BasicBlock
- Moved GetNextUnconditionalMir to BasicBlock

Change-Id: Id261434e9f7d5d93f1bce0c87c9276a20077c483
Signed-off-by: Jean Christophe Beyler <jean.christophe.beyler@intel.com>
diff --git a/compiler/dex/mir_graph.h b/compiler/dex/mir_graph.h
index fd25798..e10f66f 100644
--- a/compiler/dex/mir_graph.h
+++ b/compiler/dex/mir_graph.h
@@ -308,6 +308,20 @@
   ArenaBitVector* dom_frontier;     // Dominance frontier.
   GrowableArray<BasicBlockId>* predecessors;
   GrowableArray<SuccessorBlockInfo*>* successor_blocks;
+
+  void AppendMIR(MIR* mir);
+  void PrependMIR(MIR* mir);
+  void InsertMIRAfter(MIR* current_mir, MIR* new_mir);
+
+  /**
+   * @brief Used to obtain the next MIR that follows unconditionally.
+   * @details The implementation does not guarantee that a MIR does not
+   * follow even if this method returns nullptr.
+   * @param mir_graph the MIRGraph.
+   * @param current The MIR for which to find an unconditional follower.
+   * @return Returns the following MIR if one can be found.
+   */
+  MIR* GetNextUnconditionalMir(MIRGraph* mir_graph, MIR* current);
 };
 
 /*
@@ -786,20 +800,6 @@
   bool SetHigh(int index, bool is_high);
   bool SetHigh(int index);
 
-  void AppendMIR(BasicBlock* bb, MIR* mir);
-  void PrependMIR(BasicBlock* bb, MIR* mir);
-  void InsertMIRAfter(BasicBlock* bb, MIR* current_mir, MIR* new_mir);
-
-  /**
-   * @brief Used to obtain the next MIR that follows unconditionally.
-   * @details The implementation does not guarantee that a MIR does not
-   * follow even if this method returns nullptr.
-   * @param bb The basic block of "current" MIR.
-   * @param current The MIR for which to find an unconditional follower.
-   * @return Returns the following MIR if one can be found.
-   */
-  MIR* GetNextUnconditionalMir(BasicBlock* bb, MIR* current);
-
   char* GetDalvikDisassembly(const MIR* mir);
   void ReplaceSpecialChars(std::string& str);
   std::string GetSSAName(int ssa_reg);