mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
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
This commit is contained in:
parent
1bcc79666d
commit
cd8bc05102
@ -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