mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-13 09:33:50 +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:
parent
928fc3b4a0
commit
bdd57371bc
@ -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(); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user