diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/analyze/AnalysisWrappers.cpp | 4 | ||||
-rw-r--r-- | tools/analyze/GraphPrinters.cpp | 4 | ||||
-rw-r--r-- | tools/analyze/analyze.cpp | 4 | ||||
-rw-r--r-- | tools/bugpoint/ExtractFunction.cpp | 6 | ||||
-rw-r--r-- | tools/opt/AnalysisWrappers.cpp | 4 | ||||
-rw-r--r-- | tools/opt/GraphPrinters.cpp | 4 |
6 files changed, 13 insertions, 13 deletions
diff --git a/tools/analyze/AnalysisWrappers.cpp b/tools/analyze/AnalysisWrappers.cpp index a0520d4a4a..46ede0a153 100644 --- a/tools/analyze/AnalysisWrappers.cpp +++ b/tools/analyze/AnalysisWrappers.cpp @@ -28,8 +28,8 @@ namespace { /// external functions that are called with constant arguments. This can be /// useful when looking for standard library functions we should constant fold /// or handle in alias analyses. - struct ExternalFunctionsPassedConstants : public Pass { - virtual bool run(Module &M) { + struct ExternalFunctionsPassedConstants : public ModulePass { + virtual bool runOnModule(Module &M) { for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) if (I->isExternal()) { bool PrintedFn = false; diff --git a/tools/analyze/GraphPrinters.cpp b/tools/analyze/GraphPrinters.cpp index 1176a8df10..9fd09c94fd 100644 --- a/tools/analyze/GraphPrinters.cpp +++ b/tools/analyze/GraphPrinters.cpp @@ -58,8 +58,8 @@ namespace llvm { namespace { - struct CallGraphPrinter : public Pass { - virtual bool run(Module &M) { + struct CallGraphPrinter : public ModulePass { + virtual bool runOnModule(Module &M) { WriteGraphToFile(std::cerr, "callgraph", &getAnalysis<CallGraph>()); return false; } diff --git a/tools/analyze/analyze.cpp b/tools/analyze/analyze.cpp index 1542a1a068..5a0c9508f6 100644 --- a/tools/analyze/analyze.cpp +++ b/tools/analyze/analyze.cpp @@ -30,11 +30,11 @@ using namespace llvm; -struct ModulePassPrinter : public Pass { +struct ModulePassPrinter : public ModulePass { const PassInfo *PassToPrint; ModulePassPrinter(const PassInfo *PI) : PassToPrint(PI) {} - virtual bool run(Module &M) { + virtual bool runOnModule(Module &M) { std::cout << "Printing analysis '" << PassToPrint->getPassName() << "':\n"; getAnalysisID<Pass>(PassToPrint).print(std::cout, &M); diff --git a/tools/bugpoint/ExtractFunction.cpp b/tools/bugpoint/ExtractFunction.cpp index cf02ef73a9..d65736a1ea 100644 --- a/tools/bugpoint/ExtractFunction.cpp +++ b/tools/bugpoint/ExtractFunction.cpp @@ -211,14 +211,14 @@ namespace { /// BlockExtractorPass - This pass is used by bugpoint to extract all blocks /// from the module into their own functions except for those specified by the /// BlocksToNotExtract list. - class BlockExtractorPass : public Pass { - bool run(Module &M); + class BlockExtractorPass : public ModulePass { + bool runOnModule(Module &M); }; RegisterOpt<BlockExtractorPass> XX("extract-bbs", "Extract Basic Blocks From Module (for bugpoint use)"); } -bool BlockExtractorPass::run(Module &M) { +bool BlockExtractorPass::runOnModule(Module &M) { std::set<BasicBlock*> TranslatedBlocksToNotExtract; for (unsigned i = 0, e = BlocksToNotExtract.size(); i != e; ++i) { BasicBlock *BB = BlocksToNotExtract[i]; diff --git a/tools/opt/AnalysisWrappers.cpp b/tools/opt/AnalysisWrappers.cpp index a0520d4a4a..46ede0a153 100644 --- a/tools/opt/AnalysisWrappers.cpp +++ b/tools/opt/AnalysisWrappers.cpp @@ -28,8 +28,8 @@ namespace { /// external functions that are called with constant arguments. This can be /// useful when looking for standard library functions we should constant fold /// or handle in alias analyses. - struct ExternalFunctionsPassedConstants : public Pass { - virtual bool run(Module &M) { + struct ExternalFunctionsPassedConstants : public ModulePass { + virtual bool runOnModule(Module &M) { for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) if (I->isExternal()) { bool PrintedFn = false; diff --git a/tools/opt/GraphPrinters.cpp b/tools/opt/GraphPrinters.cpp index 1176a8df10..9fd09c94fd 100644 --- a/tools/opt/GraphPrinters.cpp +++ b/tools/opt/GraphPrinters.cpp @@ -58,8 +58,8 @@ namespace llvm { namespace { - struct CallGraphPrinter : public Pass { - virtual bool run(Module &M) { + struct CallGraphPrinter : public ModulePass { + virtual bool runOnModule(Module &M) { WriteGraphToFile(std::cerr, "callgraph", &getAnalysis<CallGraph>()); return false; } |