RegisterPressure: constify getRegSetPressureAtPos()
authorMatthias Braun <matze@braunis.de>
Mon, 14 Sep 2015 21:06:37 +0000 (21:06 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 14 Sep 2015 21:06:37 +0000 (21:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247616 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/RegisterPressure.h

index 9d8843d1d74a54c5c021c6a0b5fc1ceda29c4f0d..c64087c5965ece45d623dbf83de75d3000054af2 100644 (file)
@@ -333,7 +333,9 @@ public:
 
   /// Get the register set pressure at the current position, which may be less
   /// than the pressure across the traversed region.
-  std::vector<unsigned> &getRegSetPressureAtPos() { return CurrSetPressure; }
+  const std::vector<unsigned> &getRegSetPressureAtPos() const {
+    return CurrSetPressure;
+  }
 
   void discoverLiveOut(unsigned Reg);
   void discoverLiveIn(unsigned Reg);