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:
2312b1c
)
Include an operator<<, to print modules
author
Chris Lattner
<sabre@nondot.org>
Sun, 28 Apr 2002 04:56:28 +0000
(
04:56
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 28 Apr 2002 04:56:28 +0000
(
04:56
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2358
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Module.h
patch
|
blob
|
history
diff --git
a/include/llvm/Module.h
b/include/llvm/Module.h
index a87b48380aabbfaa19a6d215ffcbf49da5fd40f7..3f142cbe0b3a84347f5f7511150e55497025fdfc 100644
(file)
--- a/
include/llvm/Module.h
+++ b/
include/llvm/Module.h
@@
-156,4
+156,9
@@
public:
void dropAllReferences();
};
+inline std::ostream &operator<<(std::ostream &O, const Module *M) {
+ M->print(O);
+ return O;
+}
+
#endif