aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Bytecode/Writer/Writer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Bytecode/Writer/Writer.cpp b/lib/Bytecode/Writer/Writer.cpp
index 334622dfa2..f7219ea08e 100644
--- a/lib/Bytecode/Writer/Writer.cpp
+++ b/lib/Bytecode/Writer/Writer.cpp
@@ -20,6 +20,7 @@
//===----------------------------------------------------------------------===//
#include "WriterInternals.h"
+#include "llvm/Bytecode/WriteBytecodePass.h"
#include "llvm/Module.h"
#include "llvm/SymbolTable.h"
#include "llvm/DerivedTypes.h"
@@ -27,6 +28,10 @@
#include <string.h>
#include <algorithm>
+static RegisterPass<WriteBytecodePass> X("emitbytecode", "Bytecode Writer");
+
+
+
BytecodeWriter::BytecodeWriter(std::deque<unsigned char> &o, const Module *M)
: Out(o), Table(M, false) {