mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-16 12:24:03 +00:00
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:
@ -132,6 +132,8 @@ private:
|
|||||||
PassInfo(const PassInfo &); // do not implement
|
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>
|
template<typename PassName>
|
||||||
Pass *callDefaultCtor() { return new PassName(); }
|
Pass *callDefaultCtor() { return new PassName(); }
|
||||||
|
Reference in New Issue
Block a user