diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-01-02 21:33:40 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-01-02 21:33:40 +0000 |
commit | c2b861da18c54a4252fecba866341e1513fa18cc (patch) | |
tree | 1920ed05ebd32c4e3d9278a00acc1d813ced604f /lib/Target/PowerPC/PPCRegisterInfo.cpp | |
parent | ad93d7fda53d92d07a3b3a2087e46de7cd695752 (diff) | |
download | llvm-c2b861da18c54a4252fecba866341e1513fa18cc.tar.gz llvm-c2b861da18c54a4252fecba866341e1513fa18cc.tar.bz2 llvm-c2b861da18c54a4252fecba866341e1513fa18cc.tar.xz |
Fix naming inconsistency.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32823 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCRegisterInfo.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPCRegisterInfo.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/Target/PowerPC/PPCRegisterInfo.cpp b/lib/Target/PowerPC/PPCRegisterInfo.cpp index 61639c0d3f..371ab7fa47 100644 --- a/lib/Target/PowerPC/PPCRegisterInfo.cpp +++ b/lib/Target/PowerPC/PPCRegisterInfo.cpp @@ -238,9 +238,9 @@ void PPCRegisterInfo::copyRegToReg(MachineBasicBlock &MBB, } } -const unsigned* PPCRegisterInfo::getCalleeSaveRegs() const { +const unsigned* PPCRegisterInfo::getCalleeSavedRegs() const { // 32-bit Darwin calling convention. - static const unsigned Darwin32_CalleeSaveRegs[] = { + static const unsigned Darwin32_CalleeSavedRegs[] = { PPC::R13, PPC::R14, PPC::R15, PPC::R16, PPC::R17, PPC::R18, PPC::R19, PPC::R20, PPC::R21, PPC::R22, PPC::R23, @@ -261,7 +261,7 @@ const unsigned* PPCRegisterInfo::getCalleeSaveRegs() const { PPC::LR, 0 }; // 64-bit Darwin calling convention. - static const unsigned Darwin64_CalleeSaveRegs[] = { + static const unsigned Darwin64_CalleeSavedRegs[] = { PPC::X14, PPC::X15, PPC::X16, PPC::X17, PPC::X18, PPC::X19, PPC::X20, PPC::X21, PPC::X22, PPC::X23, @@ -282,14 +282,14 @@ const unsigned* PPCRegisterInfo::getCalleeSaveRegs() const { PPC::LR8, 0 }; - return Subtarget.isPPC64() ? Darwin64_CalleeSaveRegs : - Darwin32_CalleeSaveRegs; + return Subtarget.isPPC64() ? Darwin64_CalleeSavedRegs : + Darwin32_CalleeSavedRegs; } const TargetRegisterClass* const* -PPCRegisterInfo::getCalleeSaveRegClasses() const { +PPCRegisterInfo::getCalleeSavedRegClasses() const { // 32-bit Darwin calling convention. - static const TargetRegisterClass * const Darwin32_CalleeSaveRegClasses[] = { + static const TargetRegisterClass * const Darwin32_CalleeSavedRegClasses[] = { &PPC::GPRCRegClass,&PPC::GPRCRegClass,&PPC::GPRCRegClass, &PPC::GPRCRegClass,&PPC::GPRCRegClass,&PPC::GPRCRegClass,&PPC::GPRCRegClass, &PPC::GPRCRegClass,&PPC::GPRCRegClass,&PPC::GPRCRegClass,&PPC::GPRCRegClass, @@ -312,7 +312,7 @@ PPCRegisterInfo::getCalleeSaveRegClasses() const { }; // 64-bit Darwin calling convention. - static const TargetRegisterClass * const Darwin64_CalleeSaveRegClasses[] = { + static const TargetRegisterClass * const Darwin64_CalleeSavedRegClasses[] = { &PPC::G8RCRegClass,&PPC::G8RCRegClass, &PPC::G8RCRegClass,&PPC::G8RCRegClass,&PPC::G8RCRegClass,&PPC::G8RCRegClass, &PPC::G8RCRegClass,&PPC::G8RCRegClass,&PPC::G8RCRegClass,&PPC::G8RCRegClass, @@ -334,8 +334,8 @@ PPCRegisterInfo::getCalleeSaveRegClasses() const { &PPC::G8RCRegClass, 0 }; - return Subtarget.isPPC64() ? Darwin64_CalleeSaveRegClasses : - Darwin32_CalleeSaveRegClasses; + return Subtarget.isPPC64() ? Darwin64_CalleeSavedRegClasses : + Darwin32_CalleeSavedRegClasses; } /// foldMemoryOperand - PowerPC (like most RISC's) can only fold spills into |