Change over to use new style pass mechanism, now passes only expose small
[oota-llvm.git] / include / llvm / Transforms / HoistPHIConstants.h
index 27bf7ab02192b1bb5077d8ef03ae5b8a81473ca3..3a1bab1bf146210500baf25e5af8c3f594c50533 100644 (file)
@@ -9,14 +9,7 @@
 #ifndef LLVM_TRANSFORMS_HOISTPHICONSTANTS_H
 #define LLVM_TRANSFORMS_HOISTPHICONSTANTS_H
 
-#include "llvm/Pass.h"
-
-struct HoistPHIConstants : public MethodPass {
-  // doHoistPHIConstants - Hoist constants out of PHI instructions
-  //
-  static bool doHoistPHIConstants(Method *M);
-
-  virtual bool runOnMethod(Method *M) { return doHoistPHIConstants(M); }
-};
+class Pass;
+Pass *createHoistPHIConstantsPass();
 
 #endif