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
//