Add the INITIALIZE_PASS macro.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109034 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson 2010-07-21 20:46:41 +00:00
parent 928fc3b4a0
commit bdd57371bc

View File

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