mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +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:
@ -20,6 +20,8 @@
|
|||||||
#include "llvm/Support/CFG.h"
|
#include "llvm/Support/CFG.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
|
namespace llvm {
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
enum Color{
|
enum Color{
|
||||||
WHITE,
|
WHITE,
|
||||||
@ -108,3 +110,9 @@ bool EmitFunctionTable::runOnModule(Module &M){
|
|||||||
M.getGlobalList().push_back(fnCount);
|
M.getGlobalList().push_back(fnCount);
|
||||||
return true; // Always modifies program
|
return true; // Always modifies program
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ModulePass *createEmitFunctionTablePass () {
|
||||||
|
return new EmitFunctionTable();
|
||||||
|
}
|
||||||
|
|
||||||
|
} // end namespace llvm
|
||||||
|
Reference in New Issue
Block a user