split retracing into a separate file
[oota-llvm.git] / lib / Transforms / Instrumentation / EmitFunctions.cpp
index 2d9b9a7c93c2691f9fdeb8ae8b49d93e05e3adb0..0218a146a694a048ff7fb24a3f26604565816f14 100644 (file)
 
 using std::vector;
 
-struct EmitFunctionTable : public Pass {
-  const char *getPassName() const { return "EmitFunctionTablePass"; }
-
-  bool run(Module &M);
-};
+namespace {
+  struct EmitFunctionTable : public Pass {
+    bool run(Module &M);
+  };
+  
+  RegisterOpt<EmitFunctionTable> X("emitfuncs", "Emit a Function Table");
+}
 
 // Create a new pass to add function table
 //