'Pass' should now not be derived from by clients. Instead, they should derive
[oota-llvm.git] / lib / Transforms / Instrumentation / EmitFunctions.cpp
index a1c23dab23837e46c630c7969344ff8f78b63b44..92abffb8ead090183c7ee907abb1a8260090643c 100644 (file)
@@ -27,8 +27,8 @@ namespace {
     BLACK
   };
   
-  struct EmitFunctionTable : public Pass {
-    bool run(Module &M);
+  struct EmitFunctionTable : public ModulePass {
+    bool runOnModule(Module &M);
   };
   
   RegisterOpt<EmitFunctionTable>
@@ -64,7 +64,7 @@ static char hasBackEdge(Function *F){
 }
 
 // Per Module pass for inserting function table
-bool EmitFunctionTable::run(Module &M){
+bool EmitFunctionTable::runOnModule(Module &M){
   std::vector<const Type*> vType;
  
   std::vector<Constant *> vConsts;