Include an operator<<, to print modules
authorChris Lattner <sabre@nondot.org>
Sun, 28 Apr 2002 04:56:28 +0000 (04:56 +0000)
committerChris 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

index a87b48380aabbfaa19a6d215ffcbf49da5fd40f7..3f142cbe0b3a84347f5f7511150e55497025fdfc 100644 (file)
@@ -156,4 +156,9 @@ public:
   void dropAllReferences();
 };
 
+inline std::ostream &operator<<(std::ostream &O, const Module *M) {
+  M->print(O);
+  return O;
+}
+
 #endif