forked from OSchip/llvm-project
Remove unncessary isDeclaration() checks.
llvm-svn: 57179
This commit is contained in:
parent
9a1191c047
commit
ab379c905b
|
@ -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) {
|
||||||
|
|
|
@ -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!");
|
||||||
|
|
|
@ -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!");
|
||||||
|
|
Loading…
Reference in New Issue