[X86] Rip out orphaned method declarations and other dead code. NFC.
[oota-llvm.git] / lib / Target / X86 / X86PadShortFunction.cpp
index 143e70bda9e716f29805d05f3026106efdb54dec..0466175ef7183c34e02dae2bc6083ff3041aec67 100644 (file)
@@ -93,8 +93,7 @@ FunctionPass *llvm::createX86PadShortFunctions() {
 /// runOnMachineFunction - Loop over all of the basic blocks, inserting
 /// NOOP instructions before early exits.
 bool PadShortFunc::runOnMachineFunction(MachineFunction &MF) {
-  if (MF.getFunction()->hasFnAttribute(Attribute::OptimizeForSize) ||
-      MF.getFunction()->hasFnAttribute(Attribute::MinSize)) {
+  if (MF.getFunction()->optForSize()) {
     return false;
   }