From: Matthias Braun Date: Mon, 14 Sep 2015 21:06:37 +0000 (+0000) Subject: RegisterPressure: constify getRegSetPressureAtPos() X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a0f3964ea632a3ce7f6827b5ed6a790f72d87ac2;p=oota-llvm.git RegisterPressure: constify getRegSetPressureAtPos() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247616 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/RegisterPressure.h b/include/llvm/CodeGen/RegisterPressure.h index 9d8843d1d74..c64087c5965 100644 --- a/include/llvm/CodeGen/RegisterPressure.h +++ b/include/llvm/CodeGen/RegisterPressure.h @@ -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 &getRegSetPressureAtPos() { return CurrSetPressure; } + const std::vector &getRegSetPressureAtPos() const { + return CurrSetPressure; + } void discoverLiveOut(unsigned Reg); void discoverLiveIn(unsigned Reg);