mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
constify accessor.
llvm-svn: 104325
This commit is contained in:
parent
a3cca88b41
commit
1794093960
@ -216,7 +216,8 @@ public:
|
||||
|
||||
/// getRegClassVirtRegs - Return the list of virtual registers of the given
|
||||
/// target register class.
|
||||
std::vector<unsigned> &getRegClassVirtRegs(const TargetRegisterClass *RC) {
|
||||
const std::vector<unsigned> &
|
||||
getRegClassVirtRegs(const TargetRegisterClass *RC) const {
|
||||
return RegClass2VRegMap[RC->getID()];
|
||||
}
|
||||
|
||||
|
@ -1154,7 +1154,7 @@ PreAllocSplitting::SplitRegLiveIntervals(const TargetRegisterClass **RCs,
|
||||
// codegen is not modelling. Ignore these barriers for now.
|
||||
if (!TII->isSafeToMoveRegClassDefs(*RC))
|
||||
continue;
|
||||
std::vector<unsigned> &VRs = MRI->getRegClassVirtRegs(*RC);
|
||||
const std::vector<unsigned> &VRs = MRI->getRegClassVirtRegs(*RC);
|
||||
for (unsigned i = 0, e = VRs.size(); i != e; ++i) {
|
||||
unsigned Reg = VRs[i];
|
||||
if (!LIs->hasInterval(Reg))
|
||||
|
Loading…
Reference in New Issue
Block a user