RegisterPressure: Hide non-const iterators of PressureDiff
authorMatthias Braun <matze@braunis.de>
Sat, 17 Oct 2015 00:08:48 +0000 (00:08 +0000)
committerMatthias Braun <matze@braunis.de>
Sat, 17 Oct 2015 00:08:48 +0000 (00:08 +0000)
commit424a6917aa3f44c05c886bba41b9b58023bf666d
tree8da3d2c29d350ea6e403e3fcd324624cd16294c5
parentcc2082e98f780a1719383d7a7d5bcc997cc5b7c3
RegisterPressure: Hide non-const iterators of PressureDiff

It is too easy to accidentally violate the ordering requirements when
modifying the PressureDiff entries through iterators.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250590 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/RegisterPressure.h
lib/CodeGen/RegisterPressure.cpp