diff --git a/lib/Target/ARM/ARMAsmPrinter.cpp b/lib/Target/ARM/ARMAsmPrinter.cpp index 342e52a1b2b..38183c6f12f 100644 --- a/lib/Target/ARM/ARMAsmPrinter.cpp +++ b/lib/Target/ARM/ARMAsmPrinter.cpp @@ -152,6 +152,7 @@ namespace { } void getAnalysisUsage(AnalysisUsage &AU) const { + AsmPrinter::getAnalysisUsage(AU); AU.setPreservesAll(); AU.addRequired(); } diff --git a/lib/Target/X86/X86AsmPrinter.h b/lib/Target/X86/X86AsmPrinter.h index 49110f415dc..a32142ceac2 100644 --- a/lib/Target/X86/X86AsmPrinter.h +++ b/lib/Target/X86/X86AsmPrinter.h @@ -64,7 +64,7 @@ struct VISIBILITY_HIDDEN X86SharedAsmPrinter : public AsmPrinter { Subtarget->isTargetCygMing()) { AU.addRequired(); } - MachineFunctionPass::getAnalysisUsage(AU); + AsmPrinter::getAnalysisUsage(AU); } const X86Subtarget *Subtarget;