From 597f27fd29f84bfa5647805ebf8decf7f93e67c3 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 --- include/llvm/Module.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/llvm/Module.h b/include/llvm/Module.h index a87b48380aa..3f142cbe0b3 100644 --- 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