summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-09-14 21:06:37 +0000
committerMatthias Braun <matze@braunis.de>2015-09-14 21:06:37 +0000
commit06f99279301c7721b192364b4d49e9c96db134a8 (patch)
tree86f4fba87e37b16f729612d01f75701d0249ed59
parent85aabaf9353b97ea8d719931e2b082bb13b94265 (diff)
downloadbcm5719-llvm-06f99279301c7721b192364b4d49e9c96db134a8.tar.gz
bcm5719-llvm-06f99279301c7721b192364b4d49e9c96db134a8.zip
RegisterPressure: constify getRegSetPressureAtPos()
llvm-svn: 247616
-rw-r--r--llvm/include/llvm/CodeGen/RegisterPressure.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/include/llvm/CodeGen/RegisterPressure.h b/llvm/include/llvm/CodeGen/RegisterPressure.h
index 9d8843d1d74..c64087c5965 100644
--- a/llvm/include/llvm/CodeGen/RegisterPressure.h
+++ b/llvm/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<unsigned> &getRegSetPressureAtPos() { return CurrSetPressure; }
+ const std::vector<unsigned> &getRegSetPressureAtPos() const {
+ return CurrSetPressure;
+ }
void discoverLiveOut(unsigned Reg);
void discoverLiveIn(unsigned Reg);
OpenPOWER on IntegriCloud