Tighten up the AnalysisUsage of lots of passes, primarily to correctly indicate whether or not they invalidate the CFG
llvm-svn: 2385
This commit is contained in:
parent
ee2ff5da74
commit
a452f86593
|
|
@ -31,6 +31,10 @@ public:
|
|||
(*Out) << M;
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.setPreservesAll();
|
||||
}
|
||||
};
|
||||
|
||||
class PrintFunctionPass : public FunctionPass {
|
||||
|
|
@ -54,6 +58,10 @@ public:
|
|||
(*Out) << Banner << (Value*)F;
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.setPreservesAll();
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue