AsmPrinters overriding getAnalysisUsage should call super.

And not super's super, either.

llvm-svn: 42482
This commit is contained in:
Gordon Henriksen 2007-09-30 13:39:29 +00:00
parent c013b7f395
commit 9b5a117d01
2 changed files with 2 additions and 1 deletions

View File

@ -152,6 +152,7 @@ namespace {
}
void getAnalysisUsage(AnalysisUsage &AU) const {
AsmPrinter::getAnalysisUsage(AU);
AU.setPreservesAll();
AU.addRequired<MachineModuleInfo>();
}

View File

@ -64,7 +64,7 @@ struct VISIBILITY_HIDDEN X86SharedAsmPrinter : public AsmPrinter {
Subtarget->isTargetCygMing()) {
AU.addRequired<MachineModuleInfo>();
}
MachineFunctionPass::getAnalysisUsage(AU);
AsmPrinter::getAnalysisUsage(AU);
}
const X86Subtarget *Subtarget;