AsmPrinters overriding getAnalysisUsage should call super.
And not super's super, either.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42482 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/ARM/ARMAsmPrinter.cpp b/lib/Target/ARM/ARMAsmPrinter.cpp
index 342e52a..38183c6 100644
--- a/lib/Target/ARM/ARMAsmPrinter.cpp
+++ b/lib/Target/ARM/ARMAsmPrinter.cpp
@@ -152,6 +152,7 @@
}
void getAnalysisUsage(AnalysisUsage &AU) const {
+ AsmPrinter::getAnalysisUsage(AU);
AU.setPreservesAll();
AU.addRequired<MachineModuleInfo>();
}
diff --git a/lib/Target/X86/X86AsmPrinter.h b/lib/Target/X86/X86AsmPrinter.h
index 49110f4..a32142c 100644
--- a/lib/Target/X86/X86AsmPrinter.h
+++ b/lib/Target/X86/X86AsmPrinter.h
@@ -64,7 +64,7 @@
Subtarget->isTargetCygMing()) {
AU.addRequired<MachineModuleInfo>();
}
- MachineFunctionPass::getAnalysisUsage(AU);
+ AsmPrinter::getAnalysisUsage(AU);
}
const X86Subtarget *Subtarget;