[llvm] r247616 - RegisterPressure: constify getRegSetPressureAtPos()
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 14 14:06:38 PDT 2015
Author: matze
Date: Mon Sep 14 16:06:37 2015
New Revision: 247616
URL: http://llvm.org/viewvc/llvm-project?rev=247616&view=rev
Log:
RegisterPressure: constify getRegSetPressureAtPos()
Modified:
llvm/trunk/include/llvm/CodeGen/RegisterPressure.h
Modified: llvm/trunk/include/llvm/CodeGen/RegisterPressure.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/RegisterPressure.h?rev=247616&r1=247615&r2=247616&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/RegisterPressure.h (original)
+++ llvm/trunk/include/llvm/CodeGen/RegisterPressure.h Mon Sep 14 16:06:37 2015
@@ -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);
More information about the llvm-commits
mailing list