Minor compilation speed improvement.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28736 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2006-06-09 06:24:42 +00:00
parent 86c75d3113
commit b12223e284

View File

@ -3413,8 +3413,8 @@ X86TargetLowering::LowerFORMAL_ARGUMENTS(SDOperand Op, SelectionDAG &DAG) {
MachineFunction &MF = DAG.getMachineFunction();
const Function* Fn = MF.getFunction();
if (Fn->hasExternalLinkage() &&
Fn->getName() == "main" &&
Subtarget->TargetType == X86Subtarget::isCygwin)
Subtarget->TargetType == X86Subtarget::isCygwin &&
Fn->getName() == "main")
MF.getInfo<X86FunctionInfo>()->setForceFramePointer(true);
unsigned CC = cast<ConstantSDNode>(Op.getOperand(1))->getValue();