From: Owen Anderson Date: Wed, 21 Jul 2010 20:46:41 +0000 (+0000) Subject: Add the INITIALIZE_PASS macro. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=bdd57371bc8af531259bdc2820abcec5d23cd19c;p=oota-llvm.git Add the INITIALIZE_PASS macro. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109034 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/PassSupport.h b/include/llvm/PassSupport.h index 4bbafdb8552..4e936c1b213 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 ## _info(arg, name, cfg, analysis) template Pass *callDefaultCtor() { return new PassName(); }