diff options
| author | Matthias Braun <matze@braunis.de> | 2015-09-14 21:06:37 +0000 |
|---|---|---|
| committer | Matthias Braun <matze@braunis.de> | 2015-09-14 21:06:37 +0000 |
| commit | 06f99279301c7721b192364b4d49e9c96db134a8 (patch) | |
| tree | 86f4fba87e37b16f729612d01f75701d0249ed59 | |
| parent | 85aabaf9353b97ea8d719931e2b082bb13b94265 (diff) | |
| download | bcm5719-llvm-06f99279301c7721b192364b4d49e9c96db134a8.tar.gz bcm5719-llvm-06f99279301c7721b192364b4d49e9c96db134a8.zip | |
RegisterPressure: constify getRegSetPressureAtPos()
llvm-svn: 247616
| -rw-r--r-- | llvm/include/llvm/CodeGen/RegisterPressure.h | 4 |
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); |

