mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 03:25:23 +00:00
Register the WriteBytecodePass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3033 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -20,6 +20,7 @@
|
|||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#include "WriterInternals.h"
|
#include "WriterInternals.h"
|
||||||
|
#include "llvm/Bytecode/WriteBytecodePass.h"
|
||||||
#include "llvm/Module.h"
|
#include "llvm/Module.h"
|
||||||
#include "llvm/SymbolTable.h"
|
#include "llvm/SymbolTable.h"
|
||||||
#include "llvm/DerivedTypes.h"
|
#include "llvm/DerivedTypes.h"
|
||||||
@@ -27,6 +28,10 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
|
static RegisterPass<WriteBytecodePass> X("emitbytecode", "Bytecode Writer");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
BytecodeWriter::BytecodeWriter(std::deque<unsigned char> &o, const Module *M)
|
BytecodeWriter::BytecodeWriter(std::deque<unsigned char> &o, const Module *M)
|
||||||
: Out(o), Table(M, false) {
|
: Out(o), Table(M, false) {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user