diff options
author | Bill Schmidt <wschmidt@linux.vnet.ibm.com> | 2013-02-24 17:34:50 +0000 |
---|---|---|
committer | Bill Schmidt <wschmidt@linux.vnet.ibm.com> | 2013-02-24 17:34:50 +0000 |
commit | 4edd84da1b3f7fd73e96a13b6b7e183ad04ac7c4 (patch) | |
tree | 8df3f923389a8b9af3aaa8ae3e6c5367fd9fa221 /lib/Target/PowerPC/PPCRegisterInfo.h | |
parent | e8aa36a4afa02dde89e10f39b6ca87cfe1949dd8 (diff) | |
download | llvm-4edd84da1b3f7fd73e96a13b6b7e183ad04ac7c4.tar.gz llvm-4edd84da1b3f7fd73e96a13b6b7e183ad04ac7c4.tar.bz2 llvm-4edd84da1b3f7fd73e96a13b6b7e183ad04ac7c4.tar.xz |
Fix PR14364.
This removes a const_cast hack from PPCRegisterInfo::hasReservedSpillSlot().
The proper place to save the frame index for the CR spill slot is in the
PPCFunctionInfo object, not the PPCRegisterInfo object.
No new test cases, as this just reimplements existing function. Existing
tests such as test/CodeGen/PowerPC/crsave.ll are sufficient.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175998 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCRegisterInfo.h')
-rw-r--r-- | lib/Target/PowerPC/PPCRegisterInfo.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCRegisterInfo.h b/lib/Target/PowerPC/PPCRegisterInfo.h index c22450eb58..9840666242 100644 --- a/lib/Target/PowerPC/PPCRegisterInfo.h +++ b/lib/Target/PowerPC/PPCRegisterInfo.h @@ -30,7 +30,6 @@ class PPCRegisterInfo : public PPCGenRegisterInfo { std::map<unsigned, unsigned> ImmToIdxMap; const PPCSubtarget &Subtarget; const TargetInstrInfo &TII; - mutable int CRSpillFrameIdx; public: PPCRegisterInfo(const PPCSubtarget &SubTarget, const TargetInstrInfo &tii); |