diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-07-23 19:56:44 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-07-23 19:56:44 +0000 |
| commit | 36d2c7c39b813449084534f2abe4775aec9066a7 (patch) | |
| tree | 0c8741aa7c60923e3105f9c41d61a1688d0f8b6a /llvm/lib | |
| parent | 259a9b25a65b3ffe9ba23e6fe9f4b22931a47275 (diff) | |
| download | bcm5719-llvm-36d2c7c39b813449084534f2abe4775aec9066a7.tar.gz bcm5719-llvm-36d2c7c39b813449084534f2abe4775aec9066a7.zip | |
Register the WriteBytecodePass
llvm-svn: 3033
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Bytecode/Writer/Writer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Bytecode/Writer/Writer.cpp b/llvm/lib/Bytecode/Writer/Writer.cpp index 334622dfa23..f7219ea08e4 100644 --- a/llvm/lib/Bytecode/Writer/Writer.cpp +++ b/llvm/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) { |

