X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FCallGraphSCCPass.h;h=96c770232df10ac06fd3f76abdb83dd2ca74c3e5;hb=f0338331098e2d1c887a0a6b4cf87f1ddfd2b792;hp=389a80c9e361a256a43f56d781fbf28f803bf564;hpb=b12914bfc0f76a7a48357162d5f4c39a1343e69b;p=oota-llvm.git diff --git a/include/llvm/CallGraphSCCPass.h b/include/llvm/CallGraphSCCPass.h index 389a80c9e36..96c770232df 100644 --- a/include/llvm/CallGraphSCCPass.h +++ b/include/llvm/CallGraphSCCPass.h @@ -1,10 +1,10 @@ //===- CallGraphSCCPass.h - Pass that operates BU on call graph -*- C++ -*-===// -// +// // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. -// +// //===----------------------------------------------------------------------===// // // This file defines the CallGraphSCCPass class, which is used for passes which @@ -27,8 +27,9 @@ namespace llvm { 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. @@ -49,11 +50,9 @@ struct CallGraphSCCPass : public ModulePass { return false; } - /// run - Run this pass, returning true if a modification was made to the - /// module argument. This is implemented in terms of the runOnSCC method. - /// - virtual bool runOnModule(Module &M); - + /// Assign pass manager to manager this pass + virtual void assignPassManager(PMStack &PMS, + PassManagerType PMT = PMT_CallGraphPassManager); /// getAnalysisUsage - For this class, we declare that we require and preserve /// the call graph. If the derived class implements this method, it should