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(); }