mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
AsmPrinters overriding getAnalysisUsage should call super.
And not super's super, either. llvm-svn: 42482
This commit is contained in:
parent
c013b7f395
commit
9b5a117d01
@ -152,6 +152,7 @@ namespace {
|
||||
}
|
||||
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AsmPrinter::getAnalysisUsage(AU);
|
||||
AU.setPreservesAll();
|
||||
AU.addRequired<MachineModuleInfo>();
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ struct VISIBILITY_HIDDEN X86SharedAsmPrinter : public AsmPrinter {
|
||||
Subtarget->isTargetCygMing()) {
|
||||
AU.addRequired<MachineModuleInfo>();
|
||||
}
|
||||
MachineFunctionPass::getAnalysisUsage(AU);
|
||||
AsmPrinter::getAnalysisUsage(AU);
|
||||
}
|
||||
|
||||
const X86Subtarget *Subtarget;
|
||||
|
Loading…
Reference in New Issue
Block a user