RegisterPressure: There is no need to make getCurSlot() public
authorMatthias Braun <matze@braunis.de>
Tue, 1 Dec 2015 04:20:01 +0000 (04:20 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 1 Dec 2015 04:20:01 +0000 (04:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254370 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/RegisterPressure.h

index b6e0a20526fc6c7a93ff46dce35b3f619d8326a5..42131c831ea18fb20954f00bb79f9e61a2a38873 100644 (file)
@@ -328,10 +328,6 @@ public:
   // position changes while pressure does not.
   void setPos(MachineBasicBlock::const_iterator Pos) { CurrPos = Pos; }
 
-  /// \brief Get the SlotIndex for the first nondebug instruction including or
-  /// after the current position.
-  SlotIndex getCurrSlot() const;
-
   /// Recede across the previous instruction.
   bool recede(SmallVectorImpl<unsigned> *LiveUses = nullptr,
               PressureDiff *PDiff = nullptr);
@@ -442,6 +438,10 @@ protected:
   void discoverLiveOut(unsigned Reg);
   void discoverLiveIn(unsigned Reg);
 
+  /// \brief Get the SlotIndex for the first nondebug instruction including or
+  /// after the current position.
+  SlotIndex getCurrSlot() const;
+
   const LiveRange *getLiveRange(unsigned Reg) const;
 
   void increaseRegPressure(ArrayRef<unsigned> Regs);