llvm.org GIT mirror llvm / e4d4b8c
Remove unncessary isDeclaration() checks. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57179 91177308-0d34-0410-b5e6-96231b3b80d8 Devang Patel 12 years ago
3 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
5858 return false; // Don't care about loop alignment.
5959
6060 const Function *F = MF.getFunction();
61 if (!F->isDeclaration() && F->hasFnAttr(Attribute::OptimizeForSize))
61 if (F->hasFnAttr(Attribute::OptimizeForSize))
6262 return false;
6363
6464 for (MachineFunction::iterator I = MF.begin(), E = MF.end(); I != E; ++I) {
153153 SwitchToSection(TAI->SectionForGlobal(F));
154154
155155 unsigned FnAlign = 4;
156 if (!F->isDeclaration() && F->hasFnAttr(Attribute::OptimizeForSize))
156 if (F->hasFnAttr(Attribute::OptimizeForSize))
157157 FnAlign = 1;
158158 switch (F->getLinkage()) {
159159 default: assert(0 && "Unknown linkage type!");
140140 SwitchToTextSection("_text", F);
141141
142142 unsigned FnAlign = 4;
143 if (!F->isDeclaration() && F->hasFnAttr(Attribute::OptimizeForSize))
143 if (F->hasFnAttr(Attribute::OptimizeForSize))
144144 FnAlign = 1;
145145 switch (F->getLinkage()) {
146146 default: assert(0 && "Unsupported linkage type!");