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:
Chris Lattner 2002-04-28 21:26:51 +00:00
parent c74c58800a
commit 74ccd0f755

View File

@ -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