projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9da0715
)
Module's do not subclass from Value, so this code caused a segfault.
author
Chris Lattner
<sabre@nondot.org>
Sun, 18 Aug 2002 00:37:14 +0000
(
00:37
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 18 Aug 2002 00:37:14 +0000
(
00:37
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3376
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Assembly/PrintModulePass.h
patch
|
blob
|
history
diff --git
a/include/llvm/Assembly/PrintModulePass.h
b/include/llvm/Assembly/PrintModulePass.h
index 08de60363f48bb62623b6ecd0033dbca3b382e31..1dfb75e049daba6998b807224cbb7e7a87c0afb1 100644
(file)
--- a/
include/llvm/Assembly/PrintModulePass.h
+++ b/
include/llvm/Assembly/PrintModulePass.h
@@
-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;
}