aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Bytecode/WriteBytecodePass.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Bytecode/WriteBytecodePass.h')
-rw-r--r--include/llvm/Bytecode/WriteBytecodePass.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/Bytecode/WriteBytecodePass.h b/include/llvm/Bytecode/WriteBytecodePass.h
index b0155e4ddf..5c21ccded5 100644
--- a/include/llvm/Bytecode/WriteBytecodePass.h
+++ b/include/llvm/Bytecode/WriteBytecodePass.h
@@ -26,10 +26,12 @@ class WriteBytecodePass : public ModulePass {
bool DeleteStream;
bool CompressFile;
public:
+ static const int ID; // Pass identifcation, replacement for typeid
WriteBytecodePass()
- : Out(&cout), DeleteStream(false), CompressFile(false) {}
+ : ModulePass((intptr_t) &ID), Out(&cout), DeleteStream(false),
+ CompressFile(false) {}
WriteBytecodePass(OStream *o, bool DS = false, bool CF = false)
- : Out(o), DeleteStream(DS), CompressFile(CF) {}
+ : ModulePass((intptr_t) &ID), Out(o), DeleteStream(DS), CompressFile(CF) {}
inline ~WriteBytecodePass() {
if (DeleteStream) delete Out;