mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
XCore target: Fix llvm.eh.return and EH info register handling
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201561 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -58,3 +58,15 @@ int XCoreFunctionInfo::createFPSpillSlot(MachineFunction &MF) {
|
||||
return FPSpillSlot;
|
||||
}
|
||||
|
||||
const int* XCoreFunctionInfo::createEHSpillSlot(MachineFunction &MF) {
|
||||
if (EHSpillSlotSet) {
|
||||
return EHSpillSlot;
|
||||
}
|
||||
const TargetRegisterClass *RC = &XCore::GRRegsRegClass;
|
||||
MachineFrameInfo *MFI = MF.getFrameInfo();
|
||||
EHSpillSlot[0] = MFI->CreateStackObject(RC->getSize(), RC->getAlignment(), true);
|
||||
EHSpillSlot[1] = MFI->CreateStackObject(RC->getSize(), RC->getAlignment(), true);
|
||||
EHSpillSlotSet = true;
|
||||
return EHSpillSlot;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user