llvm.org GIT mirror llvm / 341873a
Use an iterator and proper query method instead of the 'hasAttrSomewhere' method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165467 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 8 years ago
1 changed file(s) with 7 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
9797 DebugLoc dl = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc();
9898
9999 bool FP = hasFP(MF);
100 bool Nested = MF.getFunction()->
101 getAttributes().hasAttrSomewhere(Attribute::Nest);
102
103 if (Nested) {
104 loadFromStack(MBB, MBBI, XCore::R11, 0, dl, TII);
105 }
100 const AttrListPtr &PAL = MF.getFunction()->getAttributes();
101
102 for (unsigned I = 0, E = PAL.getNumAttrs(); I != E; ++I)
103 if (PAL.getAttributesAtIndex(I).hasNestAttr()) {
104 loadFromStack(MBB, MBBI, XCore::R11, 0, dl, TII);
105 break;
106 }
106107
107108 // Work out frame sizes.
108109 int FrameSize = MFI->getStackSize();