summaryrefslogtreecommitdiff
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
commitdd7c3e4e56f739f6b67a4f3d67d061f2c5bca029 (patch)
treeca29bae43f17173c0dc7b3f474ea5565739169a2
parentf06c835f769aa1cf67801ed1f6bd366a447c18b1 (diff)
downloadllvm-dd7c3e4e56f739f6b67a4f3d67d061f2c5bca029.tar.gz
llvm-dd7c3e4e56f739f6b67a4f3d67d061f2c5bca029.tar.bz2
llvm-dd7c3e4e56f739f6b67a4f3d67d061f2c5bca029.tar.xz
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
-rw-r--r--lib/Transforms/IPO/AddReadAttrs.cpp5
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);
+ }
};
}