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:
3e00994
)
Add new << to allow printing modules by reference.
author
Anand Shukla
<ashukla@cs.uiuc.edu>
Wed, 3 Jul 2002 16:52:15 +0000
(16:52 +0000)
committer
Anand Shukla
<ashukla@cs.uiuc.edu>
Wed, 3 Jul 2002 16:52:15 +0000
(16:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2814
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 8e527d0960ae7d112b2f6b3c8f28c60a75858b12..afb20d3df17b33b15998c471ab85362eca6a4468 100644
(file)
--- a/
include/llvm/Module.h
+++ b/
include/llvm/Module.h
@@
-174,4
+174,9
@@
inline std::ostream &operator<<(std::ostream &O, const Module *M) {
return O;
}
+inline std::ostream &operator<<(std::ostream &O, const Module &M) {
+ M.print(O);
+ return O;
+}
+
#endif