Register the WriteBytecodePass
authorChris Lattner <sabre@nondot.org>
Tue, 23 Jul 2002 19:56:44 +0000 (19:56 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 23 Jul 2002 19:56:44 +0000 (19:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3033 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Writer/Writer.cpp

index 334622dfa239a58e668fa26a021ee78f7f1147cf..f7219ea08e4e89627e665fc669ffde3a1f3ad245 100644 (file)
@@ -20,6 +20,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "WriterInternals.h"
+#include "llvm/Bytecode/WriteBytecodePass.h"
 #include "llvm/Module.h"
 #include "llvm/SymbolTable.h"
 #include "llvm/DerivedTypes.h"
 #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) {