Add the INITIALIZE_PASS macro.
authorOwen Anderson <resistor@mac.com>
Wed, 21 Jul 2010 20:46:41 +0000 (20:46 +0000)
committerOwen Anderson <resistor@mac.com>
Wed, 21 Jul 2010 20:46:41 +0000 (20:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109034 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/PassSupport.h

index 4bbafdb85523ca52b32fb6efa9b3411aca159260..4e936c1b213acc2f9fb40dc66f6813f0079f8a69 100644 (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(); }