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 | 2bd7b24f1a85d748183ab8c4b15163e9d43e1854 (patch) | |
tree | c77c4dedff69a9390039228cc596ff04a35fa77f /llvm/lib | |
parent | 86aa16a69ad1e3ad0b484ec27b3c70e4f9ee5c90 (diff) | |
download | bcm5719-llvm-2bd7b24f1a85d748183ab8c4b15163e9d43e1854.tar.gz bcm5719-llvm-2bd7b24f1a85d748183ab8c4b15163e9d43e1854.zip |
add AU.setPreservesCFG() since this pass only adds and removes function attributes
llvm-svn: 56868
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/IPO/AddReadAttrs.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/AddReadAttrs.cpp b/llvm/lib/Transforms/IPO/AddReadAttrs.cpp index 4c6158c65e8..7af071c40bd 100644 --- a/llvm/lib/Transforms/IPO/AddReadAttrs.cpp +++ b/llvm/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); + } }; } |