mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-18 10:24:45 +00:00
Do not use typeinfo to identify pass in pass manager.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36632 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user