Inherit BasicBlockPass directly from Pass.
authorDevang Patel <dpatel@apple.com>
Thu, 25 Jan 2007 23:23:25 +0000 (23:23 +0000)
committerDevang Patel <dpatel@apple.com>
Thu, 25 Jan 2007 23:23:25 +0000 (23:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33511 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Pass.h
include/llvm/Transforms/Scalar.h
lib/Transforms/Scalar/DCE.cpp
lib/Transforms/Utils/LowerAllocations.cpp

index aab79b4f420f7a5308bdf05b703e13b57cd61bc0..d2f717991fa4fa27efaf81684590f7958efe0e21 100644 (file)
@@ -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.
index 4b38887439298ea212703c1e5cff92e625e6dd1a..ea5692b206b810be2c35d7f94bde3f506a7e1e62 100644 (file)
@@ -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;
 
 //===----------------------------------------------------------------------===//
index cf1a7fc877d83844da71a95b4cc65deba7c405d9..eb5721583ca3890093393641f31027dffec2569d 100644 (file)
@@ -53,7 +53,7 @@ namespace {
   RegisterPass<DeadInstElimination> X("die", "Dead Instruction Elimination");
 }
 
-FunctionPass *llvm::createDeadInstEliminationPass() {
+Pass *llvm::createDeadInstEliminationPass() {
   return new DeadInstElimination();
 }
 
index 00f89ffc3d2e1966e676e42df58ed58af5ed97c9..0213daf38c7162fd45f9eee1427670759dae2e7a 100644 (file)
@@ -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);
 }