summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-01-25 23:23:25 +0000
committerDevang Patel <dpatel@apple.com>2007-01-25 23:23:25 +0000
commit5292e65791d89ffb3f40dda4631104e3a0ed1040 (patch)
tree7116bbd4f5cd3bdb8a08ec1dc556dd51551742f2
parent010ae386b844aa227173ccf30450db8830010163 (diff)
downloadbcm5719-llvm-5292e65791d89ffb3f40dda4631104e3a0ed1040.tar.gz
bcm5719-llvm-5292e65791d89ffb3f40dda4631104e3a0ed1040.zip
Inherit BasicBlockPass directly from Pass.
llvm-svn: 33511
-rw-r--r--llvm/include/llvm/Pass.h2
-rw-r--r--llvm/include/llvm/Transforms/Scalar.h6
-rw-r--r--llvm/lib/Transforms/Scalar/DCE.cpp2
-rw-r--r--llvm/lib/Transforms/Utils/LowerAllocations.cpp2
4 files changed, 6 insertions, 6 deletions
diff --git a/llvm/include/llvm/Pass.h b/llvm/include/llvm/Pass.h
index aab79b4f420..d2f717991fa 100644
--- a/llvm/include/llvm/Pass.h
+++ b/llvm/include/llvm/Pass.h
@@ -291,7 +291,7 @@ public:
/// other basic block in the function.
/// 3. Optimizations conform to all of the constraints of FunctionPasses.
///
-class BasicBlockPass : public FunctionPass {
+class BasicBlockPass : public Pass {
public:
/// doInitialization - Virtual method overridden by subclasses to do
/// any necessary per-module initialization.
diff --git a/llvm/include/llvm/Transforms/Scalar.h b/llvm/include/llvm/Transforms/Scalar.h
index 4b388874392..ea5692b206b 100644
--- a/llvm/include/llvm/Transforms/Scalar.h
+++ b/llvm/include/llvm/Transforms/Scalar.h
@@ -19,8 +19,8 @@
namespace llvm {
-class ModulePass;
class FunctionPass;
+class Pass;
class GetElementPtrInst;
class PassInfo;
class TerminatorInst;
@@ -52,7 +52,7 @@ FunctionPass *createSCCPPass();
// without modifying the CFG of the function. It is a BasicBlockPass, so it
// runs efficiently when queued next to other BasicBlockPass's.
//
-FunctionPass *createDeadInstEliminationPass();
+Pass *createDeadInstEliminationPass();
//===----------------------------------------------------------------------===//
//
@@ -249,7 +249,7 @@ extern const PassInfo *LowerSelectID;
//
// AU.addRequiredID(LowerAllocationsID);
//
-FunctionPass *createLowerAllocationsPass(bool LowerMallocArgToInteger = false);
+Pass *createLowerAllocationsPass(bool LowerMallocArgToInteger = false);
extern const PassInfo *LowerAllocationsID;
//===----------------------------------------------------------------------===//
diff --git a/llvm/lib/Transforms/Scalar/DCE.cpp b/llvm/lib/Transforms/Scalar/DCE.cpp
index cf1a7fc877d..eb5721583ca 100644
--- a/llvm/lib/Transforms/Scalar/DCE.cpp
+++ b/llvm/lib/Transforms/Scalar/DCE.cpp
@@ -53,7 +53,7 @@ namespace {
RegisterPass<DeadInstElimination> X("die", "Dead Instruction Elimination");
}
-FunctionPass *llvm::createDeadInstEliminationPass() {
+Pass *llvm::createDeadInstEliminationPass() {
return new DeadInstElimination();
}
diff --git a/llvm/lib/Transforms/Utils/LowerAllocations.cpp b/llvm/lib/Transforms/Utils/LowerAllocations.cpp
index 00f89ffc3d2..0213daf38c7 100644
--- a/llvm/lib/Transforms/Utils/LowerAllocations.cpp
+++ b/llvm/lib/Transforms/Utils/LowerAllocations.cpp
@@ -73,7 +73,7 @@ namespace {
// Publically exposed interface to pass...
const PassInfo *llvm::LowerAllocationsID = X.getPassInfo();
// createLowerAllocationsPass - Interface to this file...
-FunctionPass *llvm::createLowerAllocationsPass(bool LowerMallocArgToInteger) {
+Pass *llvm::createLowerAllocationsPass(bool LowerMallocArgToInteger) {
return new LowerAllocations(LowerMallocArgToInteger);
}
OpenPOWER on IntegriCloud