From dae4a368492c4f78c23cd3fa8b31546faf683b38 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2358 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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