From ccb87cdf07f5e3c0ac1e42467a76130bce2fbecd Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Thu, 30 Sep 2004 20:14:07 +0000 Subject: [PATCH] Namespacify. Add accessor function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16620 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Instrumentation/EmitFunctions.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.34.1