Inherit CallGraphSCCPass directly from Pass.
authorDevang Patel <dpatel@apple.com>
Fri, 26 Jan 2007 00:47:38 +0000 (00:47 +0000)
committerDevang Patel <dpatel@apple.com>
Fri, 26 Jan 2007 00:47:38 +0000 (00:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33514 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CallGraphSCCPass.h
include/llvm/Transforms/IPO.h
lib/Transforms/IPO/ArgumentPromotion.cpp
lib/Transforms/IPO/InlineSimple.cpp
lib/Transforms/IPO/PruneEH.cpp

index f64ece41b6d7ab0977f7596d3424097e9f0d8a84..67b2db253dccb62962bd1c551a8f223b373ba509 100644 (file)
@@ -29,7 +29,7 @@ class CallGraphNode;
 class CallGraph;
 class PMStack;
 
-struct CallGraphSCCPass : public ModulePass {
+struct CallGraphSCCPass : public Pass {
 
   /// doInitialization - This method is called before the SCC's of the program
   /// has been processed, allowing the pass to do initialization as necessary.
index 54e6b3459e24eccc0c2fa81ad2ab2cfa9beec959..44ffa473e4aea2d64a6adb911e2c23e31511ed19 100644 (file)
@@ -21,6 +21,7 @@ namespace llvm {
 
 class FunctionPass;
 class ModulePass;
+class Pass;
 class Function;
 class BasicBlock;
 
@@ -101,13 +102,13 @@ ModulePass *createFunctionResolvingPass();
 /// createFunctionInliningPass - Return a new pass object that uses a heuristic
 /// to inline direct function calls to small functions.
 ///
-ModulePass *createFunctionInliningPass();
+Pass *createFunctionInliningPass();
 
 //===----------------------------------------------------------------------===//
 /// createPruneEHPass - Return a new pass object which transforms invoke
 /// instructions into calls, if the callee can _not_ unwind the stack.
 ///
-ModulePass *createPruneEHPass();
+Pass *createPruneEHPass();
 
 //===----------------------------------------------------------------------===//
 /// createInternalizePass - This pass loops over all of the functions in the
@@ -134,7 +135,7 @@ ModulePass *createDeadArgHackingPass();
 /// createArgumentPromotionPass - This pass promotes "by reference" arguments to
 /// be passed by value.
 ///
-ModulePass *createArgumentPromotionPass();
+Pass *createArgumentPromotionPass();
 
 //===----------------------------------------------------------------------===//
 /// createIPConstantPropagationPass - This pass propagates constants from call
index 467214dce666476f4060e8dc0e9c91dbe1db28c8..8e51e77b8685ab60f43de13ea6bac787f9dda614 100644 (file)
@@ -72,7 +72,7 @@ namespace {
                                "Promote 'by reference' arguments to scalars");
 }
 
-ModulePass *llvm::createArgumentPromotionPass() {
+Pass *llvm::createArgumentPromotionPass() {
   return new ArgPromotion();
 }
 
index 52d75735ef749a998634c543add96773492c6af2..9ee69d92b5375339daaa3c9bbcc612f5dbef202e 100644 (file)
@@ -58,7 +58,7 @@ namespace {
   RegisterPass<SimpleInliner> X("inline", "Function Integration/Inlining");
 }
 
-ModulePass *llvm::createFunctionInliningPass() { return new SimpleInliner(); }
+Pass *llvm::createFunctionInliningPass() { return new SimpleInliner(); }
 
 // CountCodeReductionForConstant - Figure out an approximation for how many
 // instructions will be constant folded if the specified value is constant.
index 14daf13ecde8cabeeb0fd4cb9a9727b1da0c9c6f..c9e3455c94b7f235727d168f7ff43cca3023cefc 100644 (file)
@@ -50,7 +50,7 @@ namespace {
   RegisterPass<PruneEH> X("prune-eh", "Remove unused exception handling info");
 }
 
-ModulePass *llvm::createPruneEHPass() { return new PruneEH(); }
+Pass *llvm::createPruneEHPass() { return new PruneEH(); }
 
 
 bool PruneEH::runOnSCC(const std::vector<CallGraphNode *> &SCC) {