X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FCallGraphSCCPass.h;h=96c770232df10ac06fd3f76abdb83dd2ca74c3e5;hb=b5bb9f5b5cfe89f4b7626671f4923d50f8d4cd6a;hp=b7fba387ea5308c2cc0b4af43afc47fc8d3aa43c;hpb=25942e9f5c1ad7f93b00059365230f7fd0089dfe;p=oota-llvm.git diff --git a/include/llvm/CallGraphSCCPass.h b/include/llvm/CallGraphSCCPass.h index b7fba387ea5..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,6 +27,7 @@ namespace llvm { class CallGraphNode; class CallGraph; +class PMStack; struct CallGraphSCCPass : public Pass { @@ -49,11 +50,9 @@ struct CallGraphSCCPass : public Pass { 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 run(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