mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Remove the getAttributesAtIndex and getNumAttrs methods in favor of using the getAttrSomewhere predicate. This prevents the uses of 'Attribute' as a collection of attributes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171271 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -100,11 +100,8 @@ void XCoreFrameLowering::emitPrologue(MachineFunction &MF) const {
|
||||
bool FP = hasFP(MF);
|
||||
const AttributeSet &PAL = MF.getFunction()->getAttributes();
|
||||
|
||||
for (unsigned I = 0, E = PAL.getNumAttrs(); I != E; ++I)
|
||||
if (PAL.getAttributesAtIndex(I).hasAttribute(Attribute::Nest)) {
|
||||
loadFromStack(MBB, MBBI, XCore::R11, 0, dl, TII);
|
||||
break;
|
||||
}
|
||||
if (PAL.hasAttrSomewhere(Attribute::Nest))
|
||||
loadFromStack(MBB, MBBI, XCore::R11, 0, dl, TII);
|
||||
|
||||
// Work out frame sizes.
|
||||
int FrameSize = MFI->getStackSize();
|
||||
|
Reference in New Issue
Block a user