summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2008-09-30 18:34:38 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2008-09-30 18:34:38 +0000
commit2bd7b24f1a85d748183ab8c4b15163e9d43e1854 (patch)
treec77c4dedff69a9390039228cc596ff04a35fa77f /llvm/lib
parent86aa16a69ad1e3ad0b484ec27b3c70e4f9ee5c90 (diff)
downloadbcm5719-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.cpp5
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);
+ }
};
}
OpenPOWER on IntegriCloud