forked from OSchip/llvm-project
parent
e6a2968a5f
commit
5f827fa57b
|
@ -32,6 +32,8 @@ struct ModulePassPrinter : public Pass {
|
|||
return false;
|
||||
}
|
||||
|
||||
virtual const char *getPassName() const { return "'Pass' Printer"; }
|
||||
|
||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.addRequiredID(PassToPrint);
|
||||
AU.setPreservesAll();
|
||||
|
@ -51,6 +53,8 @@ struct FunctionPassPrinter : public FunctionPass {
|
|||
return false;
|
||||
}
|
||||
|
||||
virtual const char *getPassName() const { return "FunctionPass Printer"; }
|
||||
|
||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.addRequiredID(PassToPrint);
|
||||
AU.setPreservesAll();
|
||||
|
@ -70,6 +74,8 @@ struct BasicBlockPassPrinter : public BasicBlockPass {
|
|||
return false;
|
||||
}
|
||||
|
||||
virtual const char *getPassName() const { return "BasicBlockPass Printer"; }
|
||||
|
||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.addRequiredID(PassToPrint);
|
||||
AU.setPreservesAll();
|
||||
|
|
Loading…
Reference in New Issue