mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
Really reserve R2 on PPC Darwin. PR 6314.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96399 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3d821aaae2
commit
5994fd0f4d
@ -287,10 +287,8 @@ def GPRC : RegisterClass<"PPC", [i32], 32,
|
||||
GPRCClass::allocation_order_begin(const MachineFunction &MF) const {
|
||||
// 32-bit SVR4 ABI: r2 is reserved for the OS.
|
||||
// 64-bit SVR4 ABI: r2 is reserved for the TOC pointer.
|
||||
if (!MF.getTarget().getSubtarget<PPCSubtarget>().isDarwin())
|
||||
return begin()+1;
|
||||
|
||||
return begin();
|
||||
// Darwin: R2 is reserved for CR save/restore sequence.
|
||||
return begin()+1;
|
||||
}
|
||||
GPRCClass::iterator
|
||||
GPRCClass::allocation_order_end(const MachineFunction &MF) const {
|
||||
@ -325,10 +323,8 @@ def G8RC : RegisterClass<"PPC", [i64], 64,
|
||||
G8RCClass::iterator
|
||||
G8RCClass::allocation_order_begin(const MachineFunction &MF) const {
|
||||
// 64-bit SVR4 ABI: r2 is reserved for the TOC pointer.
|
||||
if (!MF.getTarget().getSubtarget<PPCSubtarget>().isDarwin())
|
||||
return begin()+1;
|
||||
|
||||
return begin();
|
||||
// Darwin: r2 is reserved for CR save/restore sequence.
|
||||
return begin()+1;
|
||||
}
|
||||
G8RCClass::iterator
|
||||
G8RCClass::allocation_order_end(const MachineFunction &MF) const {
|
||||
|
Loading…
Reference in New Issue
Block a user