mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Give passnames to the printer classes
llvm-svn: 4559
This commit is contained in:
parent
d1de2510fc
commit
b49552a328
@ -31,6 +31,8 @@ struct ModulePassPrinter : public Pass {
|
|||||||
// Get and print pass...
|
// Get and print pass...
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual const char *getPassName() const { return "'Pass' Printer"; }
|
||||||
|
|
||||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||||
AU.addRequiredID(PassToPrint);
|
AU.addRequiredID(PassToPrint);
|
||||||
@ -51,6 +53,8 @@ struct FunctionPassPrinter : public FunctionPass {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual const char *getPassName() const { return "FunctionPass Printer"; }
|
||||||
|
|
||||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||||
AU.addRequiredID(PassToPrint);
|
AU.addRequiredID(PassToPrint);
|
||||||
AU.setPreservesAll();
|
AU.setPreservesAll();
|
||||||
@ -70,6 +74,8 @@ struct BasicBlockPassPrinter : public BasicBlockPass {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual const char *getPassName() const { return "BasicBlockPass Printer"; }
|
||||||
|
|
||||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||||
AU.addRequiredID(PassToPrint);
|
AU.addRequiredID(PassToPrint);
|
||||||
AU.setPreservesAll();
|
AU.setPreservesAll();
|
||||||
|
Loading…
Reference in New Issue
Block a user