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 ee2ff5da74
commit a452f86593
1 changed files with 8 additions and 0 deletions

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