Remove unncessary isDeclaration() checks.

llvm-svn: 57179
This commit is contained in:
Devang Patel 2008-10-06 17:30:07 +00:00
parent 9a1191c047
commit ab379c905b
3 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ bool LoopAligner::runOnMachineFunction(MachineFunction &MF) {
return false; // Don't care about loop alignment. return false; // Don't care about loop alignment.
const Function *F = MF.getFunction(); const Function *F = MF.getFunction();
if (!F->isDeclaration() && F->hasFnAttr(Attribute::OptimizeForSize)) if (F->hasFnAttr(Attribute::OptimizeForSize))
return false; return false;
for (MachineFunction::iterator I = MF.begin(), E = MF.end(); I != E; ++I) { for (MachineFunction::iterator I = MF.begin(), E = MF.end(); I != E; ++I) {

View File

@ -154,7 +154,7 @@ void X86ATTAsmPrinter::emitFunctionHeader(const MachineFunction &MF) {
SwitchToSection(TAI->SectionForGlobal(F)); SwitchToSection(TAI->SectionForGlobal(F));
unsigned FnAlign = 4; unsigned FnAlign = 4;
if (!F->isDeclaration() && F->hasFnAttr(Attribute::OptimizeForSize)) if (F->hasFnAttr(Attribute::OptimizeForSize))
FnAlign = 1; FnAlign = 1;
switch (F->getLinkage()) { switch (F->getLinkage()) {
default: assert(0 && "Unknown linkage type!"); default: assert(0 && "Unknown linkage type!");

View File

@ -141,7 +141,7 @@ bool X86IntelAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
SwitchToTextSection("_text", F); SwitchToTextSection("_text", F);
unsigned FnAlign = 4; unsigned FnAlign = 4;
if (!F->isDeclaration() && F->hasFnAttr(Attribute::OptimizeForSize)) if (F->hasFnAttr(Attribute::OptimizeForSize))
FnAlign = 1; FnAlign = 1;
switch (F->getLinkage()) { switch (F->getLinkage()) {
default: assert(0 && "Unsupported linkage type!"); default: assert(0 && "Unsupported linkage type!");