diff options
author | Owen Anderson <resistor@mac.com> | 2010-07-21 20:46:41 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-07-21 20:46:41 +0000 |
commit | bdd57371bc8af531259bdc2820abcec5d23cd19c (patch) | |
tree | a68f609ee67ca58a9d3fba4c8cf3c3ecff515d2c | |
parent | 928fc3b4a05d376c040297f067cad7f929d3af29 (diff) |
Add the INITIALIZE_PASS macro.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109034 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/PassSupport.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/PassSupport.h b/include/llvm/PassSupport.h index 4bbafdb855..4e936c1b21 100644 --- a/include/llvm/PassSupport.h +++ b/include/llvm/PassSupport.h @@ -132,6 +132,8 @@ private: PassInfo(const PassInfo &); // do not implement }; +#define INITIALIZE_PASS(passName, arg, name, cfg, analysis) \ + static RegisterPass<passName> passName ## _info(arg, name, cfg, analysis) template<typename PassName> Pass *callDefaultCtor() { return new PassName(); } |