summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/ConstantProp.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-06-25 16:13:24 +0000
committerChris Lattner <sabre@nondot.org>2002-06-25 16:13:24 +0000
commit113f4f4609335e1241b2a3b1bab70b470f322148 (patch)
tree22aad567b22fa1564ca74d2a0c4582df4f6d2e81 /llvm/lib/Transforms/Scalar/ConstantProp.cpp
parent7076ff29ed02c3472e82575594386739a4bb3e34 (diff)
downloadbcm5719-llvm-113f4f4609335e1241b2a3b1bab70b470f322148.tar.gz
bcm5719-llvm-113f4f4609335e1241b2a3b1bab70b470f322148.zip
MEGAPATCH checkin.
For details, See: docs/2002-06-25-MegaPatchInfo.txt llvm-svn: 2779
Diffstat (limited to 'llvm/lib/Transforms/Scalar/ConstantProp.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/ConstantProp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/ConstantProp.cpp b/llvm/lib/Transforms/Scalar/ConstantProp.cpp
index 720266ce187..51bd6cb32f6 100644
--- a/llvm/lib/Transforms/Scalar/ConstantProp.cpp
+++ b/llvm/lib/Transforms/Scalar/ConstantProp.cpp
@@ -26,7 +26,7 @@ namespace {
struct ConstantPropogation : public FunctionPass {
const char *getPassName() const { return "Simple Constant Propogation"; }
- bool runOnFunction(Function *F);
+ bool runOnFunction(Function &F);
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.preservesCFG();
@@ -39,7 +39,7 @@ Pass *createConstantPropogationPass() {
}
-bool ConstantPropogation::runOnFunction(Function *F) {
+bool ConstantPropogation::runOnFunction(Function &F) {
// Initialize the worklist to all of the instructions ready to process...
std::set<Instruction*> WorkList(inst_begin(F), inst_end(F));
bool Changed = false;
OpenPOWER on IntegriCloud