mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-10 08:40:41 +00:00
Namespacify. Add accessor function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16620 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f858f7f380
commit
ccb87cdf07
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user