From bdd57371bc8af531259bdc2820abcec5d23cd19c Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Wed, 21 Jul 2010 20:46:41 +0000 Subject: [PATCH] Add the INITIALIZE_PASS macro. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109034 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/PassSupport.h | 2 ++ 1 file changed, 2 insertions(+) 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(); }