From a0f3964ea632a3ce7f6827b5ed6a790f72d87ac2 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Mon, 14 Sep 2015 21:06:37 +0000 Subject: [PATCH] RegisterPressure: constify getRegSetPressureAtPos() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247616 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/RegisterPressure.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.34.1