diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2008-09-30 18:34:38 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2008-09-30 18:34:38 +0000 |
commit | dd7c3e4e56f739f6b67a4f3d67d061f2c5bca029 (patch) | |
tree | ca29bae43f17173c0dc7b3f474ea5565739169a2 /lib/Transforms/IPO/AddReadAttrs.cpp | |
parent | f06c835f769aa1cf67801ed1f6bd366a447c18b1 (diff) |
add AU.setPreservesCFG() since this pass only adds and removes function attributes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56868 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/AddReadAttrs.cpp')
-rw-r--r-- | lib/Transforms/IPO/AddReadAttrs.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Transforms/IPO/AddReadAttrs.cpp b/lib/Transforms/IPO/AddReadAttrs.cpp index 4c6158c65e..7af071c40b 100644 --- a/lib/Transforms/IPO/AddReadAttrs.cpp +++ b/lib/Transforms/IPO/AddReadAttrs.cpp @@ -35,6 +35,11 @@ namespace { // runOnSCC - Analyze the SCC, performing the transformation if possible. bool runOnSCC(const std::vector<CallGraphNode *> &SCC); + + virtual void getAnalysisUsage(AnalysisUsage &AU) const { + AU.setPreservesCFG(); + CallGraphSCCPass::getAnalysisUsage(AU); + } }; } |