mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Module's do not subclass from Value, so this code caused a segfault.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3376 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9da0715aa4
commit
9bb451e721
@ -12,8 +12,7 @@
|
||||
#define LLVM_ASSEMBLY_PRINTMODULEPASS_H
|
||||
|
||||
#include "llvm/Pass.h"
|
||||
#include "llvm/Value.h"
|
||||
#include <iostream>
|
||||
#include "llvm/Module.h"
|
||||
|
||||
class PrintModulePass : public Pass {
|
||||
std::ostream *Out; // ostream to print on
|
||||
@ -29,7 +28,7 @@ public:
|
||||
}
|
||||
|
||||
bool run(Module &M) {
|
||||
(*Out) << (Value&)M;
|
||||
(*Out) << M;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user