diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-12-31 00:49:59 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-12-31 00:49:59 +0000 |
commit | 9d30e7208e6b2bc3fa48305e3ae371188f643425 (patch) | |
tree | ae1e458e31434ea097a6c2cdc12e04fc63e00f8f /lib/Target/XCore | |
parent | d60b8ac64fa161646d50c49d6171cb49e6a2c7ee (diff) | |
download | external_llvm-9d30e7208e6b2bc3fa48305e3ae371188f643425.zip external_llvm-9d30e7208e6b2bc3fa48305e3ae371188f643425.tar.gz external_llvm-9d30e7208e6b2bc3fa48305e3ae371188f643425.tar.bz2 |
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
Diffstat (limited to 'lib/Target/XCore')
-rw-r--r-- | lib/Target/XCore/XCoreFrameLowering.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Target/XCore/XCoreFrameLowering.cpp b/lib/Target/XCore/XCoreFrameLowering.cpp index aa185d6..ffb0c53 100644 --- a/lib/Target/XCore/XCoreFrameLowering.cpp +++ b/lib/Target/XCore/XCoreFrameLowering.cpp @@ -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(); |