diff --git a/lib/Transforms/Instrumentation/EmitFunctions.cpp b/lib/Transforms/Instrumentation/EmitFunctions.cpp index 92abffb8ead..7b624ad007c 100644 --- a/lib/Transforms/Instrumentation/EmitFunctions.cpp +++ b/lib/Transforms/Instrumentation/EmitFunctions.cpp @@ -20,6 +20,8 @@ #include "llvm/Support/CFG.h" using namespace llvm; +namespace llvm { + namespace { enum Color{ WHITE, @@ -108,3 +110,9 @@ bool EmitFunctionTable::runOnModule(Module &M){ M.getGlobalList().push_back(fnCount); return true; // Always modifies program } + +ModulePass *createEmitFunctionTablePass () { + return new EmitFunctionTable(); +} + +} // end namespace llvm