Add new << to allow printing modules by reference.
authorAnand Shukla <ashukla@cs.uiuc.edu>
Wed, 3 Jul 2002 16:52:15 +0000 (16:52 +0000)
committerAnand 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

index 8e527d0960ae7d112b2f6b3c8f28c60a75858b12..afb20d3df17b33b15998c471ab85362eca6a4468 100644 (file)
@@ -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