[llvm-commits] [llvm] r109034 - /llvm/trunk/include/llvm/PassSupport.h
Owen Anderson
resistor at mac.com
Wed Jul 21 13:46:41 PDT 2010
Author: resistor
Date: Wed Jul 21 15:46:41 2010
New Revision: 109034
URL: http://llvm.org/viewvc/llvm-project?rev=109034&view=rev
Log:
Add the INITIALIZE_PASS macro.
Modified:
llvm/trunk/include/llvm/PassSupport.h
Modified: llvm/trunk/include/llvm/PassSupport.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/PassSupport.h?rev=109034&r1=109033&r2=109034&view=diff
==============================================================================
--- llvm/trunk/include/llvm/PassSupport.h (original)
+++ llvm/trunk/include/llvm/PassSupport.h Wed Jul 21 15:46:41 2010
@@ -132,6 +132,8 @@
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(); }
More information about the llvm-commits
mailing list