diff --git a/lib/Target/X86/X86AsmPrinter.h b/lib/Target/X86/X86AsmPrinter.h index 272c880175d..f4564c60b96 100755 --- a/lib/Target/X86/X86AsmPrinter.h +++ b/lib/Target/X86/X86AsmPrinter.h @@ -64,7 +64,9 @@ struct X86SharedAsmPrinter : public AsmPrinter { void getAnalysisUsage(AnalysisUsage &AU) const { AU.setPreservesAll(); - AU.addRequired(); + if (Subtarget->TargetType == X86Subtarget::isDarwin) { + AU.addRequired(); + } MachineFunctionPass::getAnalysisUsage(AU); }