From 97c1e5020732ce644b729b358bc0c6e5f7325996 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 28 Apr 2002 04:56:28 +0000 Subject: [PATCH] Include an operator<<, to print modules llvm-svn: 2358 --- llvm/include/llvm/Module.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/llvm/include/llvm/Module.h b/llvm/include/llvm/Module.h index a87b48380aab..3f142cbe0b3a 100644 --- a/llvm/include/llvm/Module.h +++ b/llvm/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