forked from OSchip/llvm-project
simplify various getAnalysisUsage implementations.
llvm-svn: 100376
This commit is contained in:
parent
eeaa6d67a2
commit
8b30492da3
|
@ -277,8 +277,6 @@ namespace {
|
|||
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AsmPrinter::getAnalysisUsage(AU);
|
||||
AU.setPreservesAll();
|
||||
AU.addRequired<MachineModuleInfo>();
|
||||
AU.addRequired<DwarfWriter>();
|
||||
}
|
||||
};
|
||||
|
|
|
@ -60,11 +60,6 @@ namespace {
|
|||
unsigned OpNo, unsigned AsmVariant,
|
||||
const char *ExtraCode, raw_ostream &O);
|
||||
void EmitInstruction(const MachineInstr *MI);
|
||||
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AsmPrinter::getAnalysisUsage(AU);
|
||||
AU.setPreservesAll();
|
||||
}
|
||||
};
|
||||
} // end of anonymous namespace
|
||||
|
||||
|
|
|
@ -344,8 +344,6 @@ namespace {
|
|||
virtual void EmitFunctionEntryLabel();
|
||||
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.setPreservesAll();
|
||||
AU.addRequired<MachineModuleInfo>();
|
||||
AU.addRequired<DwarfWriter>();
|
||||
PPCAsmPrinter::getAnalysisUsage(AU);
|
||||
}
|
||||
|
|
|
@ -64,11 +64,6 @@ namespace {
|
|||
static const char *getRegisterName(unsigned RegNo);
|
||||
|
||||
void EmitInstruction(const MachineInstr *MI);
|
||||
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AsmPrinter::getAnalysisUsage(AU);
|
||||
AU.setPreservesAll();
|
||||
}
|
||||
};
|
||||
} // end of anonymous namespace
|
||||
|
||||
|
|
|
@ -47,8 +47,6 @@ class VISIBILITY_HIDDEN X86AsmPrinter : public AsmPrinter {
|
|||
const X86Subtarget &getSubtarget() const { return *Subtarget; }
|
||||
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.setPreservesAll();
|
||||
AU.addRequired<MachineModuleInfo>();
|
||||
AU.addRequired<DwarfWriter>();
|
||||
AsmPrinter::getAnalysisUsage(AU);
|
||||
}
|
||||
|
|
|
@ -85,8 +85,6 @@ namespace {
|
|||
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AsmPrinter::getAnalysisUsage(AU);
|
||||
AU.setPreservesAll();
|
||||
AU.addRequired<MachineModuleInfo>();
|
||||
AU.addRequired<DwarfWriter>();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue