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;
|
(*Out) << M;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||||
|
AU.setPreservesAll();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
class PrintFunctionPass : public FunctionPass {
|
class PrintFunctionPass : public FunctionPass {
|
||||||
|
|
@ -54,6 +58,10 @@ public:
|
||||||
(*Out) << Banner << (Value*)F;
|
(*Out) << Banner << (Value*)F;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||||
|
AU.setPreservesAll();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue