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 | 6e95ae803a0274d69d366ce118b58f46ea3cdf50 (patch) | |
| tree | d3f37e02142656c5fabef64125f348223c4ad09a /llvm/lib/Target | |
| parent | ea2b9b9d67bad6fef80056642d26e045a10e3be4 (diff) | |
| download | bcm5719-llvm-6e95ae803a0274d69d366ce118b58f46ea3cdf50.tar.gz bcm5719-llvm-6e95ae803a0274d69d366ce118b58f46ea3cdf50.zip | |
Remove the getAttributesAtIndex and getNumAttrs methods in favor of using the getAttrSomewhere predicate. This prevents the uses of 'Attribute' as a collection of attributes.
llvm-svn: 171271
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/XCore/XCoreFrameLowering.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/Target/XCore/XCoreFrameLowering.cpp b/llvm/lib/Target/XCore/XCoreFrameLowering.cpp index aa185d67380..ffb0c53b3b2 100644 --- a/llvm/lib/Target/XCore/XCoreFrameLowering.cpp +++ b/llvm/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(); |

