diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-04-28 20:42:50 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-04-28 20:42:50 +0000 |
| commit | d0e9bd1ab24cc6a0a83653c33da2d3bbce9969a4 (patch) | |
| tree | 8651ddec39ffba09707868d29978b4a871ee5922 /llvm | |
| parent | 63c52f38058e5bad54d518407d9b4a897eb18688 (diff) | |
| download | bcm5719-llvm-d0e9bd1ab24cc6a0a83653c33da2d3bbce9969a4.tar.gz bcm5719-llvm-d0e9bd1ab24cc6a0a83653c33da2d3bbce9969a4.zip | |
Move include/llvm/PassManager.h to lib/VMCore/PassManagerT.h
llvm-svn: 2382
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/VMCore/PassManagerT.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/llvm/lib/VMCore/PassManagerT.h b/llvm/lib/VMCore/PassManagerT.h index d4dfda02d66..eb80740d44a 100644 --- a/llvm/lib/VMCore/PassManagerT.h +++ b/llvm/lib/VMCore/PassManagerT.h @@ -1,16 +1,19 @@ -//===- llvm/PassManager.h - Container for Passes -----------------*- C++ -*--=// +//===- PassManagerT.h - Container for Passes ---------------------*- C++ -*--=// // -// This file defines the PassManager class. This class is used to hold, +// This file defines the PassManagerT class. This class is used to hold, // maintain, and optimize execution of Pass's. The PassManager class ensures // that analysis results are available before a pass runs, and that Pass's are // destroyed when the PassManager is destroyed. // -// The PassManagerT template is instantiated three times to do its job. +// The PassManagerT template is instantiated three times to do its job. The +// public PassManager class is a Pimpl around the PassManagerT<Module> interface +// to avoid having all of the PassManager clients being exposed to the +// implementation details herein. // //===----------------------------------------------------------------------===// -#ifndef LLVM_PASSMANAGER_H -#define LLVM_PASSMANAGER_H +#ifndef LLVM_PASSMANAGER_T_H +#define LLVM_PASSMANAGER_T_H #include "llvm/Pass.h" #include <string> @@ -463,7 +466,7 @@ template<> struct PassManagerTraits<Module> : public Pass { const char *getPMName() const { return "Module"; } // run - Implement the Pass interface... - virtual bool run(Module *M) { + bool run(Module *M) { return ((PassManagerT<Module>*)this)->runOnUnit(M); } }; |

